remove leading and trailing spaces before interpolating key
Merge pull request #119 from az7arul/template-improvements

remove leading and trailing spaces before interpolating key