# Is it possible to auto adjust line's width between text in Tikz?

I want to draw line between text and adjust line's width so that it does not overflow to next line.

\begin{document}
AAAAAAAAAAA\tikz\draw[blue] (0,0) -- (4,0);BBBBBBBBBBBBBBBBBBBBBBBBBBBBB \tikz\draw[blue] (0,0) -- (4,0); CCCCCCCCCCCCCC
\end{document}


\documentclass{article}