convert dict to string