Tokenize whitespace strings correctly