If you don't want to do it that way, I would be tempted to use a regex:
Public Dim regex As Regex = New Regex( _
"(?<=name\()(\d+),(\d+)\)", _
RegexOptions.IgnoreCase _
Or RegexOptions.CultureInvariant _
Or RegexOptions.IgnorePatternWhitespace _
Or RegexOptions.Compiled _
)
That captures the two numbers into numbered groups - you could then use a simple select case statement on the first group to decide what text you need.
"could you please just give me an example code for that for each statement"
Private Shared findNames As New Regex("(?<=name\()(\d+),(\d+)\)", RegexOptions.IgnoreCase Or RegexOptions.CultureInvariant Or RegexOptions.IgnorePatternWhitespace Or RegexOptions.Compiled)
Private Shared Sub DoWork()
Dim inp As String = "name(0,0) = Hello" & vbLf & "name(1,0) = World" & vbLf & "name(2,0) = Something" & vbLf
Dim matches As MatchCollection = findNames.Matches(inp)
For Each match As Match In matches
Select Case match.Groups(1).Value
Case "0"
Console.WriteLine("ZERO")
Exit Select
Case "1"
Console.WriteLine("ONE")
Exit Select
Case "2"
Console.WriteLine("TWO")
Exit Select
End Select
Next
End Sub