Thanks guys! Now I wonder which will be fastest: get wordOffset(word1, tText) if (it > 0) AND (it = (wordOffset(word2, tText) - 1)) then or > > put space into P > put replaceText("once upon a time","\s+",P) into cleanVar > put P&"once upon"&P is in P&cleanVar&P = true