Got the parser working.

Added function to tokenize the string.
Tokenizes each line using getline.