remove partially working. problem exists when I try to print <word> after removing the word.