fix format of ttrim function