simplify substituteAtIndex