def sanitize_field(value):
    """Clean field used in the payment request form

    :param string value:
    :return: A sanitized value

    Adyen suggest to remove all new-line, so we do.
    """
    if value is None:
        return value

    return str(value).replace('\n', ' ').replace('\r', ' ').strip()