It suggests zero or more occurrence of whitespace people, followed by a comma then followed by zero or maybe more event of whitespace people. On the other hand x.replaceAll("\s+", ""); might be far more effective technique for trimming spaces (if string might have a number of contiguous Areas) due to https://mantrachocolatebars42075.blogocial.com/considerations-to-know-about-s-67286563