Remove last character when pre-edit text is empty