Added esc() function

Added esc() funciton