fixed object to string function (string matching)