public static function lastIndexOf($string, $needle, $strict = true, $offset = 0) {
        if ($strict) {
            return mb_strrpos($string, $needle, $offset);
        }

        return mb_strripos($string, $needle, $offset);
    }