Tokenize whitespace strings correctly

Tokenizing " hello" (note leading space) currently results in 2 tokens: ["","hello"]. Should be ["hello"]. See PR for fix