remove break line character before write csv file