recommend building the strings up in a ``list`` and then doing a ``''.join(foo)``. The ``+=`` performs a realloc on each call.