if(tokenEndIndex==std::string::npos)//if there is no more white space (last token in string)
word={words.substr(tokenStartIndex)};//tokenize from last whitespace to end of string
else
word={words.substr(tokenStartIndex,tokenEndIndex)};//tokenize between start of token the and next found whitespace
word={words.substr(tokenStartIndex,tokenEndIndex-tokenStartIndex)};//tokenize between start of token the and next found whitespace (2nd param is count between the two)
//preform wordChanger on each word and add space in between
@ -278,15 +276,6 @@ namespace anslatortray
tokenStartIndex={words.find_first_not_of(Characters::WHITESPACE,tokenEndIndex)};//find the next start of a token after whitespace
tokenEndIndex={words.find_first_of(Characters::WHITESPACE,tokenStartIndex)};//fin the next whitespace after start of token