The 's' replaces a person Area match at any given time even so the 's+' replaces The full Place sequence directly with the next parameter. Having said that x.replaceAll("\s+", ""); are going to be far more successful technique for trimming Areas (if string might have a number of contiguous Areas) https://mantra-chocolate-bars10863.blog-a-story.com/11731492/about-mantra-euphoria-gummie