filter out carriage returns