The 's' replaces a single House match at a time however the 's+' replaces The complete Room sequence at once with the next parameter. Even so x.replaceAll("\s+", ""); will likely be much more efficient strategy for trimming spaces (if string may have numerous contiguous Areas) mainly because of potentially less https://mantra-mushroom-chocolate98542.tinyblogging.com/helping-the-others-realize-the-advantages-of-mantra-mushroom-chocolate-75076859