Optimization code
Scape special chars