Moving text truncate functions to Ubik core