The 's' replaces one particular Room match at any given time though the 's+' replaces The full space sequence without delay with the second parameter. Having said that x.replaceAll("\s+", ""); might be far more effective way of trimming spaces (if string might have a number of contiguous Areas) due to https://mantranootropicbar54197.wizzardsblog.com/31300725/not-known-factual-statements-about-mantra-mushroom-chocolate