correct just the character form of the int. checksum.

well, the loop would end when only a '.' (period) is read as input.