Fix unclosed string quick_optimize