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. Even so x.replaceAll("\s+", ""); will likely be more economical means of trimming Areas (if string may have numerous contiguous Areas) simply because of probably significantly https://mantra-mushroom-chocolate65208.blogaritma.com/29871591/helping-the-others-realize-the-advantages-of-mantra-mushroom-chocolate