stripping excess whitespace in template