title: How to split a String value into a String Array?
body: <p>I have a String variable <code>columnNames</code> which includes the column names of a grid I am trying to sort.
  <code>String columnNames = "To, From, RHVAC Technician Schedules Complete, MST Schedules Complete"</code>. </p>
  
  <p>I am looking to split this into a String Array with 4 values. I have tried the following line of code :</p>
  
  <pre><code>String[] headersAllJobs = columnNames.split(" ");
  </code></pre>
  
  <p>However, when I run this, the commas are still stuck to the value so I have for example <code>"To,"</code> and <code>"From,"</code>. How can I split these values without the commas?</p>