Replaces all occurrences of the specified string in this String object.
Returns the number of characters or strings replaced.