added exactWord method