It claims zero or even more event of whitespace characters, accompanied by a comma after which you can followed by zero or more incidence of whitespace characters. Having said that x.replaceAll("\s+", ""); might be far more effective technique for trimming spaces (if string might have a number of contiguous Areas) https://mantrachocolatebars32075.blogzag.com/75465949/the-2-minute-rule-for-mantra-mushroom-chocolate