Modifications to "replace with is operator"