PRGGET$ read the entire line. This include the character 10(New line). Just remove the last character of the string to solve that problem.