public static function fromString($string)
    {
        if (is_null($string) || empty($string) || !is_string($string)) {
            throw new \InvalidArgumentException('The given ReCaptcha response data is invalid.', 1452283305);
        }

        $value = (string) $string;

        $value = filter_var(
            $value,
            FILTER_SANITIZE_STRING,
            FILTER_FLAG_STRIP_LOW
            | FILTER_FLAG_STRIP_HIGH
            | !FILTER_FLAG_ENCODE_LOW
            | !FILTER_FLAG_ENCODE_HIGH
            | FILTER_FLAG_NO_ENCODE_QUOTES
        );

        $value = trim($value);

        return new static($value);
    }