Whitespace in template was causing issues