check that output string at least contains base and head hashes