Refactor eval_hex_value; add sub-methods handling letter-to-number (and vice versa) conversions