'Strips - and spaces, performs country code and checksum validation'

def clean(self, value):

    value = super(ROIBANField, self).clean(value)
    if (value in EMPTY_VALUES):
        return u''
    value = value.replace(u'-', u'')
    value = value.replace(u'    ', u'')
    value = value.upper()
    if (value[0:2] != u'RO'):
        raise ValidationError(self.error_messages[u'invalid'])
    numeric_format = u''
    for char in (value[4:] + value[0:4]):
        if char.isalpha():
            numeric_format += str((ord(char) - 55))
        else:
            numeric_format += char
    if ((int(numeric_format) % 97) != 1):
        raise ValidationError(self.error_messages[u'invalid'])
    return value
