Maybe it's necessary to add some keyword such as {SPACEBAR} or something similar.
Spacebar is invisible symbol and therefore some confusion is possible.
You may use such expression: {chr(32)}
The character with code 32 is spacebar and you can use it instead spaces in the text.
This is useful if you want to use single spacebar or put trailing spaces to string