[FIX] Lab3 grader: a bug caused by stack garbage and ending "\0"

Problem description:

Next step and the fix: