Fixed string replacement error.