Text this: A non-classical optimal control problem