You may notice an extra space after your variable when you auto-populate a Word document template. This is easy to fix: just delete that extra space from the template itself.
By default, when you insert a variable on a Word document template a space is added immediately after it:
You can, and sometimes should (like in the example above), delete this space.
That's it. That is how you fix this issue.