checkReplace typo