Refactoring string template code
Reworked stg sample file and improved support for StringTemplate