Remove whitespace from template