Changed input parameter of Tokenize to const reference to avoid unnecessary copying.