truncating words for badge title