The 's' replaces one Place match at a time though the 's+' replaces The full space sequence without delay with the second parameter. In such a case, it makes no big difference, since you are changing everything with an vacant string (although It will be improved to work with \s+ https://mantra-chocolate-bars54207.theobloggers.com/37522890/about-s