title: Replace any number of white spaces with a single white space
body: <p>Is there a way to use <code>replace</code> with a <code>regex</code> denoting any number of any white space (blank but also tab) with something?  I am trying the following to contract any extension of multiple white space to just one but it doesn't work:</p>
  
  <pre><code>mystring.replace('\s+', ' ')
  </code></pre>