library/Extlib/System/Url.php
protected function normalize($scheme = true, $www = true)
    {
        $address = $this->address;
        if ($scheme && null === $this->get(self::PARSE_SCHEME)) {
            $address = sprintf('http://%s', $this->address);
        } elseif (!$scheme && $this->get(self::PARSE_SCHEME)) {
            $address = str_replace($this->get(self::PARSE_SCHEME) . '://', '', $this->address);
        }

        if (false === $www && 0 === strpos($this->get(self::PARSE_HOST), 'www.')) {
            $address = substr($address, 4);
        }

        return $address;
    }
protected function normalize($scheme = true, $www = true)
    {
        $address = $this->address;
        if ($scheme && null === $this->get(self::PARSE_SCHEME)) {
            $address = sprintf('http://%s', $this->address);
        } elseif (!$scheme && $this->get(self::PARSE_SCHEME)) {
            $address = str_replace($this->get(self::PARSE_SCHEME) . '://', '', $this->address);
        }

        if (false === $www && 0 === strpos($this->get(self::PARSE_HOST), 'www.')) {
            $address = substr($address, 4);
        }

        return $address;
    }
Return normalize address url

@param boolean $scheme
@param boolean $www
@return string