The 's' replaces 1 space match at a time however the 's+' replaces The complete Room sequence at the same time with the 2nd parameter. On the other hand x.replaceAll("\s+", ""); might be far more effective technique for trimming spaces (if string might have a number of contiguous Areas) mainly https://mantraherobar31975.qowap.com/90768564/mantra-euphoria-gummie-fundamentals-explained