public static function clean($string): string
    {
        $string = trim($string);
        $string = htmlspecialchars($string);
        return $string;
    }
public static function clean($string): string
    {
        $string = trim($string);
        $string = htmlspecialchars($string);
        return $string;
    }
public static function clean ( $ string ) : string { $ string = trim ( $ string ) ; $ string = htmlspecialchars ( $ string ) ; return $ string ; }
Applies trim and htmlspecialchars on the querystring to use it as output.

@param mixed $string
@return string
Applies trim and htmlspecialchars on the querystring to use it as output .