The 's' replaces a single Area match at any given time although the 's+' replaces The entire space sequence without delay with the second parameter. Even so x.replaceAll("\s+", ""); is going to be a lot more productive method of trimming Areas (if string can have various contiguous spaces) for the https://mantra-mushroom-chocolate54064.frewwebs.com/31929845/5-tips-about-mantra-mushroom-chocolate-you-can-use-today