function stripQuotes(string) {
        if (string) {
            if (/^['"]$/.test(string.charAt(0))) {
                string = string.substr(1);
            }
            if (/^['"]$/.test(string.substr(-1, 1))) {
                string = string.substr(0, string.length - 1);
            }
        }
        return string;
    }
function stripQuotes(string) {
        if (string) {
            if (/^['"]$/.test(string.charAt(0))) {
                string = string.substr(1);
            }
            if (/^['"]$/.test(string.substr(-1, 1))) {
                string = string.substr(0, string.length - 1);
            }
        }
        return string;
    }
function stripQuotes ( string ) { if ( string ) { if ( / ^['"]$ / . test ( string . charAt ( 0 ) ) ) { string = string . substr ( 1 ) ; } if ( / ^['"]$ / . test ( string . substr ( - 1 , 1 ) ) ) { string = string . substr ( 0 , string . length - 1 ) ; } } return string ; }
Removes the quotes around a string

@param {!String} string
@return {String}
Removes the quotes around a string
strip quotes from string