The 's' replaces just one Room match at any given time though the 's+' replaces The full space sequence without delay with the second parameter. Even so x.replaceAll("\s+", ""); is going to be a lot more efficient strategy for trimming spaces (if string may have numerous contiguous Areas) simply because https://mantra-hero-bar08642.bleepblogs.com/31846436/mantra-mushroom-chocolate-bars-an-overview