Fix one of the string optimization condition