New method toDataString and some test