Pass const references when checking for a prefix.