edit write to file logic
forget strip \n from input and edit write to file logic in q2