function ensureHexFormat(str) {
        return (/^0x/).test(str) ? str.replace("0x","#") : str;
    }
Convert 0x notation into hex6 format for tinycolor
compatibility: ("0xFFAACC" => "#FFFFFF")
@param {string} str - String to ensure hex format for
@returns {string} - str in hex format