remove duplicate "ti=" replacement pairs