anchor.diff:              "127.0.0.1:6000",
               "host:port",
               "aaa:bb:cc",
  -            ""],
  +            " \t\r\nhost\n",
  +            " "],
   
       ExpectedResults = [{"host",1025},
                          {error, [<<"The port number must be greater than 1023 and less than 65536.">>]},
  
positive.code:                                  throw({error, [<<"The hostname is malformed.">>]})
                           end,
  
      {string:strip(Host), menelaus_util:parse_validate_port_number(StringPort)};
  
  parse_hostname([]) ->
      throw({error, [<<"Hostname is required.">>]}).
  
  handle_add_node(Req) ->
      do_handle_add_node(Req, undefined).
  
negative.code: 
  %% erlang R15B03 has http_uri:parse/2 that does the job
  %% reimplement after support of R14B04 will be dropped
  parse_hostname(Hostname) ->
      do_parse_hostname(misc:trim(Hostname)).
  
  do_parse_hostname([]) ->
      throw({error, [<<"Hostname is required.">>]});
  do_parse_hostname(Hostname) ->
      WithoutScheme = case string:str(Hostname, "://") of
                          0 ->
                              Hostname;
  