added an option to check for a given word