I am trying to remove the white spaces following a custom macro. I am having the worst time understanding what is happening. I have looked through most of the answers here for how to remove white spaces but I cannot get it to work correctly.
\documentclass{article}
\NewDocumentCommand{\programName}{m}{%
\textbf{#1} program
}
\begin{document}
I want to use the \programName{ProperItem}.
I want to use the \textbf{ProperItem} program.
\end{document}
