Solves task 8 replace words