abbreviate text only if longer than maxlen