# Expanded StrSubstitute

I am trying to use \StrSubstitute, but what I want is to expand it all the way to get the result string.

\StrSubstitute{Řepa}{Ř}{Rzzz}


then i use it with

% somehow define \a as the result string of the above macro
% \def\b{Strom}

\pdf@strcmp{\a}{\b}


I want to use it to bypass the fact that czech characters are after A-Z which does not reflect how czech people order the characters in their alphabet

-
In what context do you want to use this? –  egreg Feb 9 '13 at 13:23
Thank you very much, that solved it. Should have thought about that. Thanks a lot. –  user25713 Feb 9 '13 at 13:36
All xstring macros starting with \Str accept one last optional argument in brackets [ ] where the resulting expandable output is stored in.
\StrSubstitute{Řepa}{Ř}{Rzzz}[\a]