modernize
check digit (X) should be case insensitive. fixes #4