Fix username trimming

user names are now being trimmed correctly