update characters after editing tag