The 's' replaces a single space match at any given time even so the 's+' replaces the whole Place sequence simultaneously with the 2nd parameter. Nevertheless x.replaceAll("\s+", ""); will be extra successful method of trimming Areas (if string can have many contiguous spaces) for the reason that of doubtless less https://mantra-bars-euphoria-bar87530.blogkoo.com/about-mantra-euphoria-gummie-50959657