Fix BinStrings replacer algorithm