Modify sitemap template to exclude self and trim whitespace