I have to implement a search in following method,

Let :

```
Dim checkin As String = "This is the base string, i have to find a word here"
Dim valueSearch  As String="to find a word"

```

Now the algorithm to be implemented is:

* Dim str() As String = Split(checkin , " ")
* Dim Position As Integer
* `Position`=Find Position of `str(0)` in the string
* Check `str(1)` with the next word after `position`th word in `checkin`
* if not equal continue the second step with `str(1)`
* `if Dim valueSearch As String="to find a game" then`
i have to display a message that `"to find a"` is present

My question is that is it possible to find the position of a word in a string using 

[string.Contains()](http://vb.net-informations.com/string/vb.net_String_Contains.htm) operation. or any other possibility to implement this algorithm?
['https://Stackoverflow.com/questions/25931781', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']
I made a Ribbon.xml for every addin, that has the same structure.
I've set a "namespace" in every ribbon.xml, that will help the controls to be added to the same tab, everytime.

```
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load" xmlns:x="NAMESPACE FOR EVERY TAB"> //the namespaces abreviation is "x"
    <ribbon>
        <tabs>
            <tab idQ="x:tab1" label="CommonTab" >
            ....

```

Then I set the tabs idQ with the "x:" prefix so it will know the namespace. From every add-in that uses the same xml structure, the controls from the tab will be added to a single tab.
We use [Add In Express](http://www.add-in-express.com/) at our work place. It's really easy to use and does everything. It's paid though.

Also please look at [this](https://stackoverflow.com/questions/7135480/office-add-in-ribbons-same-tab-with-2-addins) answer.