title: How can I capitalize each first letter of a word in a sentence?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2784588/how-to-capitalize-first-letter-of-each-sentence">How to capitalize first letter of each sentence?</a>  </p>
  </blockquote>
  
  
  
  <pre><code>public static string CapitalizeEachWord(this string sentence)
  {
      string[] words = sentence.Split();
      foreach (string word in words)
      {
          word[0] = ((string)word[0]).ToUpper();                
      }
  }
  </code></pre>
  
  <p>I'm trying to create a extension method for a helper class I'm trying to create for myself for future projects.</p>
  
  <p>This one particular is supposed to capitalize each word appropriately. Meaning, the first letter of every word should be capitalized. I'm having trouble getting this to work.</p>
  
  <p>It says I cannot convert a char to a string, but I remember being able to do that at some point. Maybe I'm forgetting a crucial part. </p>
  
  <p>Thanks for the suggestions.</p>