title: Trim function in C#
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4126934/removing-all-spaces-in-a-string">Removing all spaces in a string</a>  </p>
  </blockquote>
  
  
  
  <p>Hi,</p>
  
  <pre><code>    // Input string
      string st = "  This is an example string. ";
  
      // Call Trim instance method.
      // This returns a new string copy.
      st = st.Trim();
  
      // output 
      "This is an example string."
  </code></pre>
  
  <p>How can I out put </p>
  
  <pre><code>"Thisisanexamplestring."
  </code></pre>
  
  <p>I want to remove all the blanks between the whole sentence. Thanks.</p>