Code that takes a string and checks if it is either an anagram or not