The 's' replaces one particular space match at any given time even so the 's+' replaces The complete Place sequence at the same time with the 2nd parameter. Nevertheless x.replaceAll("\s+", ""); will probably be more economical means of trimming Areas (if string may have multiple contiguous spaces) simply because of https://mantra-euphoria-gummies99865.blogdigy.com/a-review-of-mantra-mushroom-gummies-46863826