update to the body class function

removing a trailing space after the template name