remove input value from anagram list