Linear Global Detectors of Redundant and Rare Strings