move toLoweCase to the correct line of code