\documentclass{article}
\newbox\TBox
\makeatletter
\newcount\sCount
\def\hSpace#1{%
	\sCount=0%
	\loop\ifnum\sCount<#1\relax
		\mbox{ }\allowbreak%
		\advance\sCount by 1%
	\repeat%
}
\makeatother
\parindent=0pt
\begin{document}
some text some \fbox{\hSpace{9}} text some text some  text 
some text some text \fbox{\hSpace{12}} text
some text some text some text some text some text some text
some text some text some text some text some text some text
some text some text some text some text some text some text
\end{document}
