What's the most elegant way in .NET to convert X spaces to a single space?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/206717/how-do-i-replace-multiple-spaces-with-a-single-space-in-c">How do I replace multiple spaces with a single space in C#?</a>  </p>
</blockquote>



<p>Right now I have a </p>

<pre><code>while(StreetName.IndexOf("  ") != -1) StreetName = StreetName.Replace("  "," ")
</code></pre>

<p>But I think its kinda ugly. Is there a better way? </p>
