\begin{Schunk}
\begin{Sinput}
 grep("^Charles", x, value = TRUE)
\end{Sinput}
\begin{Soutput}
[1] "Charles"         "Charles-William"
\end{Soutput}
\end{Schunk}
