It states zero or more occurrence of whitespace people, followed by a comma and afterwards accompanied by zero or maybe more incidence of whitespace people.Having said that x.replaceAll("s+", ""); will probably be extra successful method of trimming Areas (if string can have a number of contiguous spaces) mainly because of probably considerably les