condensed substring checks