bug in capital hex digit checking fixes #191.