It states zero or even more incidence of whitespace people, accompanied by a comma after which followed by zero or more occurrence of whitespace people.Having said that x.replaceAll("s+", ""); will probably be a lot more productive means of trimming spaces (if string can have numerous contiguous Areas) for the reason that of probably fewer no of re