DP32, CODE, watch out for substring end index