flatten results to string