add a functions that accepts string and returns a collection of tokens,
(as stated in the assignment pdf).