This method is more efficient when we know we're not going to need the string afterwards, and should cut down on intermediate allocations.