tokenizing streams