Use realloc instead of malloc in ResizeString_