template names with leading/trailing spaces

parsed Template names can have spaces before or after, but those
shouldn't be part of the template name lookjp