convert data to string when dataType is text