title: Collapse sequences of white space into a single character and trim string
body: <p>Consider the following example:</p>
  
  <pre><code>"    Hello      this  is a   long       string!   "
  </code></pre>
  
  <p>I want to convert that to:</p>
  
  <pre><code>"Hello this is a long string!"
  </code></pre>