How to convert a String o another Hex String

I'd like to see the justification for that statement