def abbreviate(text,max_length = 240):
    """Shorten a string indixcating omitted part using elipsis ('...')"""
    if len(text) > max_length:
        text = text[0:max_length-16-3]+"..."+text[-16:]
    return text