make a space optional in # template

Fixes #38, Closes #82