refactored DropUnimportantWords function