Implementing def. to strip lines of supplied words