Text this: On Stochastic Optimization Problems and an Application in Finance