added debug log for search string