Capitalizing the first letter of a string only
<p>I have already taken a look at such posts like:</p>
<p><a href="http://forums.asp.net/t/1040231.aspx?Format%20to%20first%20letter%20upper%20case" rel="nofollow noreferrer">Format to first letter uppercase</a> <br/>
<a href="https://stackoverflow.com/questions/22906769/how-to-capitalise-the-first-letter-of-every-word-in-a-string">How to capitalise the first letter of every word in a string</a></p>
<p>But none of these seem to actually work. I would have thought to start with that there would just be a:</p>
<pre><code>.Capitalize();
</code></pre>
<p>Like there is:</p>
<pre><code>.Lower(); &amp; .Upper();
</code></pre>
<p>Are there any documentation or references regarding converting to a string like the following?</p>
<pre><code>string before = &quot;INVOICE&quot;;
</code></pre>
<p>To then becoming:</p>
<pre><code>string after = &quot;Invoice&quot;;
</code></pre>
<p>I receive no errors using the way the posts solutions I read give me, however, the <code>before</code> still remains capitalized.</p>