import re


def trim_carriage_return(value):
    """
    Remove (and trim) carriage return char from value
    :param value:
    :return: trimmed value
    """
    return re.sub(r'[\n\r]+', '', value)