OK try this, assuming your data is in A1...
=LEFT(A1,LEN(A1)-IF(RIGHT(A1,4)="USDT",4,3))
copied down