def abbreviate(a_string, max_len=100):
    """Return a truncated string if its length exceeds max_len.
    Ellipsis dots are added if truncated (and total length is max_len + 3)."""
    return a_string[:max_len] + (a_string[max_len:] and '...')