fixed bug in del_char
cleanup