title: How to capitalize the first letter in each word in string in c#
body: <p>I have tried researching <em>'Questions that may already have your answer'</em> but none of them really aided in this since most of them deal with different programming languages..</p>
  
  <p>So in regards to C#, specifically ASP.NET MVC, in my <em>Create</em> action I have the code to capitalize the very first character of the first word in the string, but if the user enters in 2 words, the first character of the 2nd word stays lowercase.</p>
  
  <p>Here is what I have so far in my <strong>Controller</strong></p>
  
  <pre><code>[HttpPost]
  [ValidateAntiForgeryToken]
  public ActionResult Create([Bind(Include = "ID,text,subcategory")] Activities codeAC)
  {
      if (ModelState.IsValid)
      {
          char firstLetter = codeAC.text[0];
  
          if (char.IsLower(firstLetter))
          {
              codeAC.text = codeAC.text.First().ToString().ToUpper() + String.Join("", codeAC.text.Skip(1));
          }
  </code></pre>
  
  <p>How do I modify this so that if the user enters in <em>'test test2'</em> the result being saved into the database would be <em>'Test Test2'</em>, not <em>'Test test2'</em>?</p>
  
  <p>Any help is appreciated.</p>