Used const string in place of char*