adding a hexstring function