Parser functionality to parse lines