String.split won't deal with the spaces at the first
<pre><code>String test="   Begin with spaces";   

for(String n:test.split("\\s"))              
    System.out.println(n);
</code></pre>

<p>The output is:</p>

<blockquote>
  <p>Begin</p>
  
  <p>with</p>
  
  <p>space</p>
</blockquote>

<p>I want to delete all the space, but it creates null strings. I can't use trim at first, So what's the best solution to this problem?</p>
