checks if a word exists in File