implemented bool is_port(string port) to return true if it's a valid port