freq table to csv string