Convert text_out output to string