In this LaTeX code I attempt to replace the "(" in references, so that they would look like "x)", not "(x)":
\documentclass{article}
\usepackage{enumitem}
\usepackage{xstring}
\begin{document}
\begin{enumerate}[label=(\alph*)]
\item \label{cla:Item1} an apple
\item \label{cla:Item2} a banana
\item a carrot, see \StrSubstitute{\ref{cla:Item1}}{(}{}
\item a durian, see \StrSubstitute{\ref{cla:Item2}}{(}{}
\end{enumerate}
\end{document}
However, \StrSubstitute doesn't seem to work and all references are still printed as "(x)".
Why \StrSubstitute doesn't work? Is this a bug?
Are there any workarounds?
