remove leading whitespace from template