Added isAnagramOfString and convertToArray