Adds "0x" to a given String if it does not already start with "0x".
String addHexPrefix(String str) { return utils.isHexPrefixed(str) ? str : '0x' + str; }