private function filterString($str): string
    {
        if (is_string($str) && strlen($str) > 0 && $str !== null) {
            return $str;
        }
        throw new \Exception('String required', 1);
    }