Yes, spaces are allowed within a single variable {#var#}.
Each variable parameter {#var#} will allow you to enter 0 – 30 characters. This means that spaces and punctuations are not counted.
So, if you have any variable data that is more than 30 characters, you can include {#var#} as per what you feel will help you accommodate the data without spacing between 2 variable parameters.