public static function sprintAssoc($string, $params)
    {
        foreach ($params as $key => $value) {
            $string = preg_replace("/%{($key)}/", $value, $string);
        }
        return $string;
    }