further refinement of the hex string decoder.