So you trim here when you validate but you don't trim when assigning the variables above. Either you should do trim there too or just not trim here.