TSQL - LEN and SUBSTRING may seem bugged but they are not, they are only very strange