It states zero or maybe more prevalence of whitespace figures, followed by a comma and after that accompanied by zero or even more prevalence of whitespace figures. Having said that x.replaceAll("\s+", ""); is going to be a lot more effective technique for trimming spaces (if string might have several contiguous https://mantra-hero-bar19752.bligblogging.com/31904502/how-much-you-need-to-expect-you-ll-pay-for-a-good-mantra-mushroom-chocolate-bars