read dict string and convert string to dict object