Moving truncate text functions back into Ubik core