title: How can I remove extra white space in a string in JavaScript?
body: <p>How can I remove extra white space (i.e. more than one white space character in a row) from text in JavaScript?</p>
  
  <p>E.g </p>
  
  <pre><code>match    the start using.
  </code></pre>
  
  <p>How can I remove all but one of the spaces between "match" and "the"?</p>