added constructor to string template