Removes the '0x' prefix from a hexadecimal string if it exists.

  • Parameters

    • str: string

      The input string.

    Returns string

    The input string with the '0x' prefix removed, if present.