\documentclass{article}
\ExplSyntaxOn
\cs_new:Npn\x_test:n#1{
\bool_if:nTF
{
\str_if_eq_p:nn{#1}{h} ||
\str_if_eq_p:nn{#1}{d} ||
\str_if_eq_p:nn{#1}{min}
}
{#1:yes}
{#1:no}
}
\let\test\x_test:n
\ExplSyntaxOff
\begin{document}
\test{h}
\test{?}
\test{min}
\test{d}
\test{xxx}
\end{document}