def ENDS_WITH(rule_value, tran_value):
    """Return True if tran_value ends with rule_value

    Parameters:
        rule_value: Value from the rule file to check for.
        tran_value: Value from transaction.
    Return:
        bool: Will return true if `tran_value` ends with `rule_value`.
    """

    rule_value = rule_value.lower()
    tran_value = tran_value.lower()

    tran_value = tran_value.strip()
    return tran_value.endswith(rule_value)