shorten long messages correctly