added toHex function which remove '0x' prefix