Remove spaces around smtp hosts

For example, if someone enters the value "smtp.live.com:587 ", the trailing whitespace would prevent the regular expression from detecting the port