Fix issue MR-174 - Trailing Space on a Hostname/IP will cause the connection not to happen.