Implement string template functionality