Add removeWord function