REPLACE
Text

Replaces characters within text

Syntax:

=REPLACE(old_text, start_num, num_chars, new_text)

Example:

=REPLACE("abcdef", 2, 3, "XXX")