The 's' replaces a person Place match at a time but the 's+' replaces The full Area sequence at once with the next parameter. On the other hand x.replaceAll("\s+", ""); might be far more successful means of trimming Areas (if string can have various contiguous spaces) for the reason that https://mantrachocolatebars31974.blog-mall.com/31899225/mantra-mushroom-chocolate-bars-an-overview