Another corner case for string optimization problem