Try this syntax:
This combines all-white spaces as a delimiter.
So if you have the string:
This will yield the strings "Hello" and "World" and eliminate the space among the [space] and the [tab].
The backslash should be avoided because Java would first try to avoid the string to a special character, and transfer that to be parsed. What you want, is the literal "\s", which means, you need to pass "\\s". It can become a bit complicated.
The \\s is equivalent to [ \\t\\n\\x0B\\f\\r]