I have defined the following shortcut for some text
\newcommand{\sometext}{text\\text\\text}
Now I would like to use this in some other place but with the linebreaks removed. So is there an easy way to do it (e.g. something like "\remove_linebreaks{\sometext}")?