whitespace trimmed for is_email() and fixed return bug