supporting hex string that starts with 0x