You should strongly consider using filter_var() for email address validation.
if(filter_var($email, FILTER_VALIDATE_EMAIL) !== false)) {
// validation failed
}
Trying to fix input for the end user can lead to unexpected results and still not give you a valid email address.