ToString method for table