private int skipWhiteSpaces(string text, int index) { while (index < text.Length && isWhiteSpace(text[index])) { index++; } return index; }