modify csv to txt according to submit constraint