rewrite jx.string.hexToRgb and jx.string.rgbToHex method.