It suggests zero or even more prevalence of whitespace people, accompanied by a comma and after that accompanied by zero or even more event of whitespace people. Having said that x.replaceAll("\s+", ""); are going to be far more productive way of trimming spaces (if string may have several contiguous Areas) https://mantraherobar32985.blog-a-story.com/11704037/about-mantra-mushroom-chocolate