The 's' replaces one particular Room match at a time although the 's+' replaces The entire space sequence directly with the second parameter. Nevertheless x.replaceAll("\s+", ""); will be extra successful method of trimming Areas (if string can have various contiguous spaces) because of doubtless much less no of replacements owing https://mantra-chocolate-bars31964.bloggactif.com/32335572/s-an-overview