When "expression(2)" refers to "index1", then the result isn't the same before and after the replacement.