Text this: Optimal management of indexed and nominal debt