"ASCII Art" error in template code?

When i’m try parse row by length ( the width L of a letter represented in ASCII art. All letters are the same width.)
I`m found what for letter ‘?’ string size is trimming.
for i in 0…h as usize {
let mut input_line = String::new();
io::stdin().read_line(&mut input_line).unwrap();
let row = input_line.trim_right().to_string();
eprintln!("{} len = {}", row, row.len());
}

Therefore, the fourth test falls.
Test M@NH@TT@N
It,s normal or bug template?

Try with trim_right_matches(’\n’)