Helper for writing and transforming repeatitive text