Replace function for Zero no Kiseki and Ao no Kiseki