python split semantics in java,str.trim().split('\\s+')