\mbox{text}
The \mbox command creates a box just wide enough to hold the text created by its argument.
See also: Spaces and Boxes,