Python split semantics in Java,str.trim().split('\\s+')