
\documentclass{article}
  \pagestyle{empty}

\begin{document}
A\phantom{BCDE}F

A\hphantom{BCDE}F

ABCDEF
\end{document}
