It says zero or more occurrence of whitespace people, followed by a comma after which accompanied by zero or even more occurrence of whitespace figures. Having said that x.replaceAll("\s+", ""); are going to be far more effective way of trimming spaces (if string might have a number of contiguous Areas) https://mantra-mushroom-chocolate65218.blogdanica.com/31288360/everything-about-s