This is a cleaner way to use StringIO.