title: Fastest way to remove white spaces in string
body: <p>I'm trying to fetch multiple email addresses seperated by "," within string from database table, but it's also returning me whitespaces, and I want to remove the whitespace quickly. </p>
  
  <p>The following code does remove whitespace, but it also becomes slow whenever I try to fetch large number email addresses in a string like to 30000, and then try to remove whitespace between them. It takes more than four to five minutes to remove those spaces. </p>
  
  <pre><code> Regex Spaces =
          new Regex(@"\s+", RegexOptions.Compiled);
  txtEmailID.Text = MultipleSpaces.Replace(emailaddress),"");
  </code></pre>
  
  <p>Could anyone please tell me how can I remove the whitespace within a second even for large number of email address?</p>