It says zero or even more event of whitespace characters, accompanied by a comma after which you can accompanied by zero or more incidence of whitespace characters. On the other hand x.replaceAll("\s+", ""); might be a lot more effective technique for trimming spaces (if string might have several contiguous Areas) https://mantramushroomchocolate98631.webbuzzfeed.com/31876425/everything-about-mantra-euphoria-gummie