public function stripBadChars(string $parameter, array $optionalChars = []): string
    {
        return str_replace(self::badChars . $optionalChars, "", $parameter);
    }
public function stripBadChars(string $parameter, array $optionalChars = []): string
    {
        return str_replace(self::badChars . $optionalChars, "", $parameter);
    }
public function stripBadChars ( string $ parameter , array $ optionalChars = [ ] ) : string { return str_replace ( self :: badChars . $ optionalChars , "" , $ parameter ) ; }
Strip unauthorized chars from string

@param string $parameter []
@param array $optionalChars
@return string
Strip unauthorized chars from string