Produce common sub-string indices for two strings
