The 's' replaces just one space match at any given time but the 's+' replaces the whole space sequence at once with the 2nd parameter.Individuals two replaceAll calls will generally make precisely the same end result, regardless of what x is. Having said that, it is important to notice which the two standard expressions aren't exactly the same:How