correccted word.toLowerCase(word) to word.toLowerCase() , etc. eg I took out the contents between ()