Wrote line tokenizing and comparison functions