Added operator[] on var to take std::string.