Text this: Optimal Resource Extraction under Stochastic Terms of Trade