It says zero or even more incidence of whitespace people, accompanied by a comma then followed by zero or even more prevalence of whitespace characters.Nonetheless x.replaceAll("s+", ""); will likely be much more efficient strategy for trimming Areas (if string can have various contiguous spaces) since of probably significantly less no of replaceme