Revert "remove tableToString"

This reverts commit 8e3a3a033fa59f297bab31e6b215cc97eab83d83.