VerifyCheckDigit function

Verify whether a value ends with a valid check digit