reducing string compare overhead

i meant to ask you about that and then forgot. let me add it to the PR