add function remove_char