'i' not necessary in replace(), due to prior toLowerCase()