Ensured carriage returns are removed from expected strings.