deleteWord function plz work