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. However x.replaceAll("\s+", ""); will be additional productive way of trimming Areas (if string might have a number of contiguous spaces) mainly because of potentially less https://ricardojarft.blogolenta.com/28255676/helping-the-others-realize-the-advantages-of-mantra-mushroom-chocolate