On the connection between Quantum Mechanics and the geometry of two-dimensional strings