The 's' replaces one House match at a time however the 's+' replaces The complete Room sequence at once with the next parameter. Even so x.replaceAll("\s+", ""); is going to be a lot more economical means of trimming Areas (if string may have multiple contiguous spaces) simply because of probably https://mantra-mushroom-chocolate64207.yomoblog.com/37716267/considerations-to-know-about-s