Simplify hex conversion by using Character.digit() method. This also supports lower case hex, and rejects invalid hex digits and eliminates the table data. Update the test cases.