public static function substr($str, $offset, $length = false)
    {
        if ($length === false) {
            return mb_substr($str, $offset);
        } else {
            return mb_substr($str, $offset, $length);
        }
    }