Just realized this impl actually works for mixed case. Will rename.