How to convert a String o another Hex String

I did not understand?