There's a quick way to know this. The place where a space can be inserted is roughly the same place where can be naturally inserted.
> ****
> **** **** ****
> **** **** ****
Actually this structure is known as . Basically, a starts with a noun/adjective/verb/adverb/etc, optionally followed by one or more subsidiary verbs and particles.
Inserting spaces between all words (i.e. ` `) is overkill in most cases.
But this rule is not strict, and you will find a lot of exceptions in children's books and old video games. Don't worry too much.