Implement a new replacer which only replaces words.