Delete word functionality