Add delete character function