title: How to remove white spaces from sentence?
body: <p>I want to remove all  white spaces from string variable which contains a sentence.
  Here is my code:</p>
  
  <pre><code>string s = "This text contains white spaces";
  string ns = s.Trim();
  </code></pre>
  
  <p>Variable "sn" should look like "Thistextcontainswhitespaces", but it doesn't(method s.Trim() isn't working). What am I missing or doing wrong?</p>