Added logic to handle word match, ignore case on find/replace