private static int[] extractQuotedString(String rawData) {
		// Remembers whether we're actually in a quoted string yet
		boolean inQuotes = false;

		// Remembers which type of quoted string we're in
		char quoteChar = '"';

		// Stores the position of the first character inside
		//  the quoted string (i.e. the start of the return string)
		int start = 0;

		// Iterate through the input string looking for the start
		// and end of the quoted string
		for (int pos=0; pos < rawData.length(); pos++) {
			char currentChar = rawData.charAt(pos);
			if (currentChar=='"' || currentChar=='\'') {
				if (!inQuotes) {
					// We're entering a quoted string
					quoteChar = currentChar;
					inQuotes = true;
					start = pos+1;
				}
				else if (quoteChar == currentChar) {
					// We're leaving a quoted string
					inQuotes = false;
					return new int[] { start, pos };
				}
				// Otherwise we've encountered a quote
				// inside a quote, so just continue
			}
		}

		return null;
	}