Left out valid end-of-string comparison in r30073.

Refs #4031