Perl API has a handy (and safer) strnEQ