public static function fillPlaceholders(string $msg, array $values)
    {
        foreach ($values as $key => $value)
            $msg = str_replace('{' . $key . '}', self::str($value), $msg);
        return $msg;
    }