format data to string before handling it to text table