If we do not use space inside a piece of text:

$this is a text without space$ %(outputs text without any space)

To add space we need to use the \ escape character

$this\ will\ have\ space$ %(text will have space)