Dim str As String = "This string has some text" If str.Contains("string") Then MessageBox.Show("Yeps, that string is in here!") Else MessageBox.Show("No, the string is not in here!") End If