make a space optional in # template

Fixes #38