As a note to the original poster, you might want to check out-
https://www.postgresql.org/docs/current/citext.html