removing slashes from template names