It's possible in several ways. Here's a (non expandable) one:
\documentclass{article}
\makeatletter
\newcommand{\startwithsUpper}[1]{%
\startwithsUpper@aux#1\relax
}
\def\startwithsUpper@aux#1#2\relax{%
\uppercase{\csname\initial@s #1}#2\endcsname
}
\def\initial@s{s}
\makeatother
\newcommand{\sPlot}{Here it is}
\begin{document}
\startwithsUpper{plot}
\end{document}
Here's an expandable one, with expl3
:
\documentclass{article}
\usepackage{xparse}
\ExplSyntaxOn
\NewExpandableDocumentCommand{\startwithsUpper}{m}
{
% \use:c is essentially \csname...\endcsname
\use:c
{
s % add the initial s
\text_titlecase_first:n { #1 }
}
}
\ExplSyntaxOff
\newcommand{\sPlot}{Here it is}
\begin{document}
\startwithsUpper{plot}
\end{document}
The following (more complicated) version accepts either a string or a control sequence as argument.
\documentclass{article}
\usepackage{xparse}
\ExplSyntaxOn
\NewExpandableDocumentCommand{\startwithsUpper}{m}
{
\montecarlo_start_with_s_upper:n { #1 }
}
\cs_new:Nn \montecarlo_start_with_s_upper:n
{
\tl_if_single:nTF { #1 }
{
\token_if_cs:NTF #1
{
\__montecarlo_start_with_s_upper:e { \cs_to_str:N #1 }
}
{
\__montecarlo_start_with_s_upper:n { #1 }
}
}
{
\__montecarlo_start_with_s_upper:n { #1 }
}
}
\cs_new:Nn \__montecarlo_start_with_s_upper:n
{
\use:c
{
s
\char_titlecase:N #1
}
}
\cs_generate_variant:Nn \__montecarlo_start_with_s_upper:n { e }
\ExplSyntaxOff
\newcommand{\sPlot}{Here it is}
\begin{document}
X\startwithsUpper{plot}X
X\startwithsUpper{\plot}X
\end{document}
{\plot}
not{plot}
as you show. which do you need (it is always best to post complete test document to avoid such ambiguities)