add delete char function

add delete char function