avi substr change