word mode and ignore case mode in ireplace.py