title: How to split string at comma but keep white spaces?
body: <p>How to split string at comma so that it keeps all spaces. Example:</p>
  
  <pre><code>Input: ["  hello  , world  "]
  </code></pre>
  
  <p>Need to separate this in array so that it looks like this:</p>
  
  <pre><code>Array[0] = "  hello  "
  Array[1] = " world  "
  </code></pre>
  
  <p>and after connecting them:</p>
  
  <pre><code>Output: "  hello   world  "
  </code></pre>
  
  <p>Tried using split like this: <code>input.split("\\s*,\\s*"))</code> but then I get it separated without white space...</p>
  
  <pre><code>Array[0] = "hello"
  Array[1] = "world"
  </code></pre>
  
  <p>Any ideas how to do this?</p>