The 's' replaces one space match at any given time but the 's+' replaces The full Area sequence at once with the next parameter. However x.replaceAll("\s+", ""); will be extra successful method of trimming Areas (if string can have various contiguous spaces) because of doubtless significantly less no of replacements https://mantra-bars-euphoria-bar99763.activoblog.com/32795131/the-definitive-guide-to-mantra-euphoria-gummie