Implementing lexer interface for file and string

Adding a test file containing the same string.
Some improvement to display test.