fix Issue 9901 - string return from inner template function error
Merge pull request #1865 from 9rnsr/fix9901

Issue 9901 - string return from inner template function error