! move shorten_text to Util function

Signed-off-by: Spuds <spuds@spudsdesign.com>