title: string.split() and dealing with duplicates
body: <p>I have a string <code>String test = "-b--b--";</code></p>
  
  <p>I want an array that has <code>{"", "b", "", "b", ""}</code></p>
  
  <p>How can I call the <code>string.split()</code> function to obtain this?</p>
  
  <p>EDIT:</p>
  
  <p>I've tried <code>test.split("-")</code>.
  My tests gave me <code>{"", "b", "", "b"}</code>.
  Why does the method not include the last emptyspace on my array if it did include the first one between the first pair of hyphens?</p>
  
  <p>Basically I want to get all the characters between the hypens, where <code>String test = ---</code> should give me <code>{"", "", ""}</code></p>