input preprocessing step: remove \r's before parsing