H1: delete the repeating codes in Replace rules. Boxing