create method hasReplaceKeyword