truncate only if message is too long