Modifies function replacing a template in Auto Insert Mode.