string $template to lowercase

hi dude 
fixed a little bug

cheers, reto