Summing over geometries in string theory