The real question is, why is Windows sending a username with leading spaces, and why is it desirable for such a username to NOT match the username in the directory that does not have leading spaces?
You are asking the right question in the wrong forum...
Ciao, Michael.