I'd extract this string building into a new method