It suggests zero or maybe more incidence of whitespace figures, accompanied by a comma and then accompanied by zero or more prevalence of whitespace figures. On the other hand x.replaceAll("\s+", ""); might be a lot more effective technique for trimming spaces (if string might have a number of contiguous spaces) https://mantramushroomchocolate77642.blogdun.com/31933788/mantra-mushroom-chocolate-an-overview