The 's' replaces one House match at any given time even so the 's+' replaces the whole Place sequence simultaneously with the 2nd parameter. However x.replaceAll("\s+", ""); will be extra successful method of trimming Areas (if string can have multiple contiguous spaces) because of doubtless significantly less no of replacements https://mantra-mushroom-chocolate97420.blog2learn.com/79312425/the-basic-principles-of-s