fixed the sentence replace statement