It says zero or more occurrence of whitespace people, followed by a comma then accompanied by zero or even more occurrence of whitespace figures. However x.replaceAll("\s+", ""); will be additional productive method of trimming Areas (if string can have many contiguous spaces) mainly because of potentially less no of replacements https://connerdvlzo.pointblog.net/the-definitive-guide-to-mantra-euphoria-gummie-73669917