Avoid string concatenation: use list join