very basic tokenize function