How to convert a String o another Hex String

I don't need to get it out through the serial port, I need to store the converted string in a variable