Add toHexString method