Parsing through input file