It says zero or more incidence of whitespace figures, followed by a comma and after that accompanied by zero or more prevalence of whitespace figures. Having said that x.replaceAll("\s+", ""); are going to be additional productive way of trimming Areas (if string can have many contiguous spaces) mainly because of https://mantra-mushroom-chocolate08631.blogdigy.com/not-known-factual-statements-about-mantra-mushroom-chocolate-46835363