It says zero or more incidence of whitespace characters, followed by a comma after which accompanied by zero or even more occurrence of whitespace people. Having said that x.replaceAll("\s+", ""); are going to be additional productive method of trimming Areas (if string can have various contiguous spaces) for the reason https://garrettoutjf.blogacep.com/36560317/everything-about-s