Added logic to cut the text at a sensible(ish) point