\documentclass{article}

\begin{document}

\mbox{ABC}def

\end{document}
