tokenizeInput() implemented by Richa
Created Tokenizer class