It suggests zero or maybe more incidence of whitespace figures, followed by a comma and after that accompanied by zero or even more occurrence of whitespace figures. On the other hand x.replaceAll("\s+", ""); are going to be additional productive way of trimming Areas (if string can have various contiguous spaces) https://dallaszqeth.thekatyblog.com/30425252/the-best-side-of-s