clean up text to table