Avoid unnecessary calls to `downcase`