Removal of c_str() from temporary variables (GUI).