The 's' replaces one Place match at a time but the 's+' replaces The full space sequence without delay with the second parameter. Nonetheless x.replaceAll("\s+", ""); will likely be more economical means of trimming Areas (if string may have multiple contiguous spaces) because of doubtless much less no of replacements https://mantramushroomchocolate87530.fireblogz.com/62709578/about-s