How to remove dashes and change the first words to caps?
<p>I want to convert this key some_name and change it to Some Name.</p>

<p>How can i replace the dash and change the first letter of the words to caps for the key only</p>

<pre><code>var data = $(this).serializeObject();
$.each(data, function(key, val) {
var tablefeed = $('&lt;tr&gt;&lt;td&gt;'+key+'&lt;/td&gt;&lt;td id="'+key+'"&gt;'+val+'&lt;/td&gt;&lt;tr&gt;').appendTo('#display');
                    });
    $(".modal-body").html(tablefeed); 
</code></pre>

<p>current output<br>
key            | val</p>

<pre><code>some_name_11_ar_22     | joe 
</code></pre>

<p>Expected output</p>

<pre><code>Some Name  11 ar 22   | joe
</code></pre>
