fix str formatting in calc_checksum