Function convertHexEndianess

Toggles the endianess of a hex string. 0xBEEF > 0xEFBE If string is little Endianess it turns into Big Endianess, and vice versa

This method is mainly used for Smart Contract messaging and data inspection