Fix string replacement

First version was correct. Replace it.