tango: detect the type of return functions and convert all data to a string