title: c# Fastest way to remove extra white spaces
body: <p>What is the fastest way to replace extra white spaces to one white space?<br>
  e.g.</p>
  
  <p><em>from</em> </p>
  
  <pre><code>foo      bar 
  </code></pre>
  
  <p><em>to</em></p>
  
  <pre><code>foo bar
  </code></pre>