The 's' replaces just one Room match at any given time however the 's+' replaces The full Room sequence at once with the 2nd parameter. Having said that x.replaceAll("\s+", ""); might be far more effective technique for trimming spaces (if string might have several contiguous Areas) due to the fact https://mantra-euphoria-gummies99865.blogdigy.com/a-review-of-mantra-mushroom-gummies-46863826