Fix string replacement.