The 's' replaces 1 space match at a time however the 's+' replaces The complete Room sequence at the same time with the next parameter. In such a case, it makes no distinction, since you are changing everything with an vacant string (Whilst It will be improved to employ \s+ https://mantra-mushroom-chocolate08631.kylieblog.com/31843216/considerations-to-know-about-s