function removeCharacter(data, character, ignoreInString = true) {
    if (!data) {
        return '';
    }
    let stringType = null;
    let resp = '';
    let c = null;
    for (let idx = 0; idx < data.length; ++idx) {
        c = data[idx];
        if (ignoreInString) {
            if (c == stringType && data[idx - 1] != '\\') {
                stringType = null;
                resp += c;
                continue;
            }
            if (c == "'" && !stringType) {
                stringType = "'";
            } else if (c == '"' && !stringType) {
                stringType = '"';
            } else if (c == '`' && !stringType) {
                stringType = '`';
            }
        }
        if (c !== character || stringType) {
            resp += c;
        }
    }
    return resp;
}
Remove a specific character.
@param {string} data
@param {string} character
@param {boolean} ignoreInString If 'true', the 'character' won't be searched in the string.
@returns