remove \r from expected and result