Simplifing solution for unparsing csv file