I suspect, some non readable(Non-ascii characters) inside the name column, that might not get removed as part of TRIM
calls.
select convert(varbinary, Name) from table
Reading the HEX
output from above query should reveal the same.
Kindly read this to find how to write functions to remove such characters.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…