Replace string

fixed string replacement