It states zero or maybe more incidence of whitespace characters, accompanied by a comma after which you can followed by zero or more incidence of whitespace characters. However x.replaceAll("\s+", ""); are going to be additional productive method of trimming Areas (if string can have many contiguous spaces) for the reason https://brookscibud.onesmablog.com/mantra-mushroom-chocolate-an-overview-71853215