It states zero or more event of whitespace figures, followed by a comma then followed by zero or even more event of whitespace characters.Nonetheless x.replaceAll("s+", ""); might be additional economical technique for trimming Areas (if string may have a number of contiguous spaces) since of potentially much less no of replacements due the to unde