The 's' replaces just one Place match at a time although the 's+' replaces The full Area sequence at once with the next parameter. Having said that x.replaceAll("\s+", ""); might be far more productive way of trimming Areas (if string can have many contiguous spaces) for the reason that of https://mantra-mushroom-chocolate56420.blogofchange.com/31901470/not-known-facts-about-mantra-mushroom-chocolate