def enforce_excel_cell_string_limit(long_string, limit):
    """
        Trims a long string. This function aims to address a limitation of CSV
        files, where very long strings which exceed the char cell limit of Excel
        cause weird artifacts to happen when saving to CSV.
    """
    trimmed_string = ''
    if limit <= 3:
        limit = 4

    if len(long_string) > limit:
        trimmed_string = (long_string[:(limit-3)] + '...')

        return trimmed_string
    else:
        return long_string