It states zero or even more prevalence of whitespace characters, accompanied by a comma and afterwards accompanied by zero or even more incidence of whitespace figures.On the other hand x.replaceAll("s+", ""); will be much more productive means of trimming spaces (if string can have multiple contiguous Areas) for the reason that of probably fewer n