changed checking of checksum so we do not allow carriage return as an output to checksum