def _isCharEnclosed(charIndex, string):
    """ Return true if the character at charIndex is enclosed in double quotes (a string) """
    numQuotes = 0  # if the number of quotes past this character is odd, than this character lies inside a string
    for i in range(charIndex, len(string)):
        if string[i] == '"':
            numQuotes += 1

    return numQuotes % 2 == 1