It suggests zero or more occurrence of whitespace people, followed by a comma then followed by zero or maybe more event of whitespace people. Even so x.replaceAll("\s+", ""); is going to be much more efficient technique for trimming spaces (if string might have several contiguous Areas) due to the fact https://stephendxocs.blogsumer.com/30774279/considerations-to-know-about-s