Trimming spaces from recipient email addresses

I know this should be the responsibility of the developer to clean their inputs, but does it hurt to trim here?
The issue is that the FILTER_VALIDATE_EMAIL fails if there's a space at the end of an email.