I would like to have a command that combines \oldstylenums for numbers in the argument and \textsc for text in the argument. I believe that a solution using some for loop is possible, but I think there must be a simpler solution.
MWE:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\pagestyle{empty}
\begin{document}
I get \oldstylenums{1s}
I want \oldstylenums{1}\textsc{s}
\end{document}


