change data output to string