Support for whole-word-only replacement