title: How to remove all commas from a string and add white space?
body: <p>Given these two strings:</p>
  
  <pre><code>var a = "November 5, 1916";
  var b = "October 5–10, 1592";
  </code></pre>
  
  <p>I am doing:</p>
  
  <pre><code>b.replace(' ', '').split(' ');
  a.replace(' ', '').split(' ');
  </code></pre>
  
  <p>But I still get a comma and no white space. I need to be able to remove ALL commas from those strings and keep the white space in order to have:</p>
  
  <pre><code>var resultA = "November 5 1916";
  var resultB = "October 5–10 1592";
  </code></pre>
  
  <p><strong>update</strong></p>
  
  <p>I do need the <code>split()</code> afterwards as I need each string in an array.</p>