stripped out extra whitespace on inputlines so that the output file isn't so bloated