Runtime: fixed some out of bound string access and do not modify string object shape