It suggests zero or maybe more event of whitespace people, followed by a comma after which you can accompanied by zero or maybe more incidence of whitespace figures.Even so x.replaceAll("s+", ""); might be extra efficient way of trimming spaces (if string can have multiple contiguous Areas) for the reason that of probably fewer no of replacements o