The 's' replaces just one Place match at any given time however the 's+' replaces The complete Room sequence at the same time with the next parameter. Even so x.replaceAll("\s+", ""); are going to be additional productive method of trimming Areas (if string can have many contiguous spaces) mainly because https://mantra-euphoria-gummies86419.timeblog.net/67238755/considerations-to-know-about-s