Dynamically allocate more memory if the string buffer runs out of space when