The 's' replaces one space match at any given time however the 's+' replaces the whole space sequence at the same time with the second parameter.In such cases, it helps make no change, since you are replacing anything with the empty string (While it would be superior to make use of s+ from an efficiency perspective). For those who were replacing us