Strings are notoriously bad allocations of memory repeatedly as slight changes are made to the string. Furthermore, even small things such as capitalizing a letter in a larger string means a reallocation. Best off to process an entire string, such as capitalizing, in one step as we reduce the reallocation to one shot.