It suggests zero or even more incidence of whitespace people, accompanied by a comma after which followed by zero or more occurrence of whitespace people.However x.replaceAll("s+", ""); will likely be additional economical technique for trimming Areas (if string may have a number of contiguous spaces) since of potentially much less no of replacemen