fixing toLowerCase check on operator