public static function sprintAssocDefault($string, $params, $default = '')
    {
        foreach ($params as $key => $value) {
            $string = preg_replace("/%{($key)}/", $value, $string);
        }
        $string = preg_replace("/%{\w*}/", $default, $string);
        return $string;
    }