text: // --- Directions
  // Check to see if two provided strings are anagrams of eachother.
  // One string is an anagram of another if it uses the same characters
  // in the same quantity. Only consider characters, not spaces
  // or punctuation.  Consider capital letters to be the same as lower case
  // --- Examples
  //   anagrams('rail safety', 'fairy tales') --> True
  //   anagrams('RAIL! SAFETY!', 'fairy tales') --> True
  //   anagrams('Hi there', 'Bye there') --> False
  
  function anagrams(stringA, stringB) {
    stringA = makeArray(stringA);
    stringB = makeArray(stringB);
    return stringA == stringB;
  }
  
  function makeArray(str){
    return str.toLowerCase().split('').sort().join();
  }
  
  module.exports = anagrams;
  