Please update this to:

```
text = []

for ...
    ....
    text.append(...)

return ''.join(text)