I do believe that putting a regular expression in the str.split parentheses should solve the issue. The Java String.split() method is based upon regular expressions so what you need is:
str = "Hello I'm your String";
String[] splitStr = str.split("\\s+");