I have a string 

```
string str = "2952885619_Table!$1$4";

```

and I would like to extract the value 1 and 4. 

I have tried with 

```
int index =str.IndexOf('$');
if (index > 0)
{
    int rowIndex = Convert.ToInt32(string.Substring(index, index + 1));
    int colIndex = Convert.ToInt32(BookmrkID.Substring(index, index + 3));
}

```

but it throws a `System.ArgumentOutOfRangeException` and I don't know why. 

Are there other ways to extract these two values?