To replace a string of characters, R will enter replace mode, and anything typed will overwrite the existing characters.
ESC (escape) exits the replace mode.