Console application to implement Parsing of a string