title: How to capitalize the first letter of word in a string using Java?
body: <p>Example strings</p>
  
  <pre><code>one thousand only
  two hundred
  twenty
  seven
  </code></pre>
  
  <p>How do I change the first character of a string in capital letter and not change the case of any of the other letters?</p>
  
  <p>After the change it should be:</p>
  
  <pre><code>One thousand only
  Two hundred
  Twenty
  Seven
  </code></pre>
  
  <p>Note: I don't want to use the apache.commons.lang.WordUtils to do this.</p>