do not copy underlying bytes in substr function

declare as improvement instead of as fix