title: C# Remove tab from string, Tabs Identificaton
body: <p>I want to remove tabs from a string. I am using this code but its not working. </p>
  
  <pre><code> string strWithTabs = "here is a string      with a tab";
  
   // tab-character
   char tab = '\u0009';
   String line = strWithTabs.Replace(tab.ToString(), "");
  </code></pre>
  
  <p>I tried this, but still its not working</p>
  
  <pre><code>String line = strWithTabs.Replace("\t", "");
  </code></pre>
  
  <p>It worked with <code>String line = strWithTabs.Replace("    ", "");</code> </p>
  
  <p>But is their any other way to Identify tabs ? </p>
  
  <p>I also looked at this post <a href="https://stackoverflow.com/questions/21010004/removal-of-tab-whitespace">Removal of Tab-whitespace?</a>
  But it removed all the spaces from the string, where as I just want to remove Tabs.</p>