title: How do I replace multiple spaces with a single space in C#?
body: <p>How can I replace multiple spaces in a string with only one space in C#?</p>
  
  <p>Example:</p>
  
  <pre><code>1 2 3  4    5
  </code></pre>
  
  <p>would be:</p>
  
  <pre><code>1 2 3 4 5
  </code></pre>