def limit_string(string, limit):
    """
    Cuts off a string on last word instead of max chars and adds ellipsis at the end
    Args:
        string (unicode)
        limit (int)
    """
    string = string.strip()
    if len(string) > limit:
        string = string[:limit - 3]
        string = string.rsplit(' ', 1)[0] + '...'
    return string