Using sprintf function instead of str_replace in ddns_update_host.