It suggests zero or more occurrence of whitespace people, followed by a comma after which followed by zero or even more occurrence of whitespace people. Even so x.replaceAll("\s+", ""); is going to be a lot more effective technique for trimming spaces (if string might have a number of contiguous Areas) https://mantra-chocolate-bars10863.blog-a-story.com/11731492/about-mantra-euphoria-gummie