removed trailing whitespace
Bugfix: print commands after variable substitution