change substring length