whole word switch functioning