The 's' replaces one Place match at a time but the 's+' replaces The full Area sequence without delay with the next parameter. Nonetheless x.replaceAll("\s+", ""); will probably be more successful method of trimming Areas (if string can have various contiguous spaces) for the reason that of doubtless much less https://mantra-hero-bar75960.post-blogs.com/52549481/new-step-by-step-map-for-s