Remove the whitespace from the beginning and end of a string.

Firefox browser doesn't passed for example email address like "  name@example.com  ", but server symfony2 validation does.