Tokenize a string with STL functions and save tokens to a vector.