A set of functions to calculate check digits according to various algorithms and to verify whether a string ends in a valid check digit