using delimiter but not delete spaces
<p>I am writing a program where I want to split a string separated by comma. My problem is a user can pass or input the string to the program like this: </p>

<pre><code>   Hello,,hey,123 
</code></pre>

<p>So, is there a way that I can add a space between the <code>hello</code> and <code>hey</code> before I append it to a arraylist. Also my delimiter is ignoring the double <code>,,</code> and just going to the next word why is that ? </p>
