Improvement in handling invalid email address strings