def clean_cr(line):
    """
    Removes carriage return characters from passed string or list of strings
    """
    if isinstance(line, list):
        return [e.split('\r')[0] for e in line]
    else:
        return line.split('\r')[0]