Replaces all occurrences of a token (substring) in a string with a new token. If a max count is provided, there can only be up to that many replacements starting from the left side of the string.
Required. The original string.
Required. The token in the original string to replace.
Required. The new token to replace the original token.
Optional. The maximum number of occurrences that the old token can be replaced.