I need to create the fipscode for census tracts that were formatted incorrectly.

The error occurs when I try to make a string variable from the newly created trid90 variable. For some reason, line 204 and line 204 have the same fipscode but the censusTract and the trtid90 both show that they are different. Do you have any idea why this would occur?

In the second screenshot you can see that in lines 163 and 164 there isn’t an issue. I’m very confused. I hope you can see the error.

Here is the code I used:
Code:
 format state %02.0f
format county %03.0f
codebook censusTract
format censusTract %6.2f
            gen trtid90 = censusTract * 100
            label variable trtid90 "1990 census tracts w/o decimal"
 
gen str_state =string(int(state), "%02.0f")
gen str_county =string(int(county), "%03.0f")
gen str_censusTract =string(int(trtid90), "%06.0f")
egen fipscode = concat(str_state str_county str_censusTract)
sort fipscode activityYear
 duplicates report fipscode
 duplicates list  fipscode, nolabel sepby(fipscode) // 13
 duplicates tag fipscode, gen(dup_fipscode)