Remove trailing white space

This pull request removes trailing white space of templates.