The 's' replaces one particular Room match at a time though the 's+' replaces The entire space sequence directly with the second parameter. Nevertheless x.replaceAll("\s+", ""); will be extra economical means of trimming Areas (if string may have multiple contiguous spaces) because of doubtless significantly less no of replacements thanks https://finneulap.ltfblog.com/30526483/a-review-of-mantra-mushroom-gummies