This just occurred to me - you could also use NSMutableString and have it operate on the same buffer each time.