Fixed test cases by ignoring \r.