Remove spaces in template (needed for django 1.4 compatability)