I cast to char* because queryProp() returns const char*.