string split func when there are more than 1 space code example Example: split funtion in string on multiple spaces String[] sArray = s.split("\\s{2,}");