Removing whitespace in template