Correct algorithm parsing

The current version was accepting truncated names.