Whitespace trimming

I needed to prevent a form from being submitted with required fields being filled with pure spaces.