Consolidated the _indexOfWhitespaceOrNon and _lastIndexOfWhitespaceOrNon functions.