support endian for str2hex
support endian for str2hex