Added function to convert opcode string to hex