toHex

Extension function for the String class that converts the string to its hexadecimal representation.

Return

The hexadecimal representation of the string.