"Returns a copy of str with the first occurrence of pattern substituted for the second argument." should be "Returns a copy of str with the first occurrence of pattern replaced by the second argument."