title: Removing all non letter characters from a string in C#
body: <p>I want to remove all non letter characters from a string. When I say all letters I mean anything that isn't in the alphabet, or an apostrophe. This is the code I have.</p>
  
  <pre><code>public static string RemoveBadChars(string word)
  {
      char[] chars = new char[word.Length];
      for (int i = 0; i &lt; word.Length; i++)
      {
          char c = word[i];
  
          if ((int)c &gt;= 65 &amp;&amp; (int)c &lt;= 90)
          {
              chars[i] = c;
          }
          else if ((int)c &gt;= 97 &amp;&amp; (int)c &lt;= 122)
          {
              chars[i] = c;
          }
          else if ((int)c == 44)
          {
              chars[i] = c;
          }
      }
  
      word = new string(chars);
  
      return word;
  }
  </code></pre>
  
  <p>It's close, but doesn't quite work. The problem is this:</p>
  
  <pre><code>[in]: "(the"
  [out]: " the"
  </code></pre>
  
  <p>It gives me a space there instead of the "(". I want to remove the character entirely.</p>