Must trim the csv for ending newline.