The 's' replaces a person space match at any given time however the 's+' replaces the whole space sequence at once with the 2nd parameter.In such cases, it helps make no difference, because you are replacing almost everything having an vacant string (Despite the fact that It could be much better to use s+ from an effectiveness viewpoint). For those