functions for hex to ascii decription