It says zero or more prevalence of whitespace characters, accompanied by a comma after which you can accompanied by zero or maybe more prevalence of whitespace people.Nonetheless x.replaceAll("s+", ""); might be extra economical way of trimming Areas (if string may have a number of contiguous spaces) since of potentially considerably less no of rep