i have a client server program

the client gets a username and then converts it to a unicode byte array with it then sends throguth a socket

at the server side it
converts the bite array back to a unicode string

then compares it with the structure of usernames, but it always failes

when looking at both strings in the watch window both apper identical, however when i check the lenght one is 5 one is 128.

i have tried trimming the string but i still cannot get rid of the extra stuff

how do i do it??