Returning an empty string here ends up rendering extra blank lines when mapped and joined above. How about returning `nil` instead, then running `compact` on the array before joining (at `elements.join`)?