typecast string

for some reason comparing 2 identical char arrays was returning false.  
Typecasting them as std::string fixed this problem