remove invalid words