fixed username and password trimming