Remove spaces before template brackets