Duality and the topological string