Use HexString2Int instead of endian error prone previous implementation