private int getStringLen(char[] text, int startPos) {
		int stringLen = 0;
		if (startPos < text.length) {
			if (text[startPos] == '"'  ||  text[startPos] == '\'') {
				boolean again = true;
				for (int i=startPos;  again && i<text.length;  i++) {
					stringLen++;
					if (i> startPos  &&  text[i] == text[startPos]) {
						again = false;
					}
				}
				// If we are at the end of the text but have no trailing
				// quote, insert a "virtual" quote so the high-lighting
				// works correctly.
				if (again) stringLen++;
			}
		}

		// Return string length, if present
		return stringLen;
	}