inWord = true;
}
else if (inWord && isSpace) {
inWord = false;
wordCount++;
words[wordCount++] = new Range<int>(wordStart, i);