I want to display the first and last characters of any given string entered into a textbox. The strings can be of any length as the user wants (as long as it is one word) I would like to be able to do something like this... "william = will and iam" or "Celtic = Cel and tic"

I understand I would have to split or divide the string. How would I go about doing this? Any help is appreciated, thanks.

EDIT:
Thanks for your help once again guys, this is how the code ended up!

```
Dim strInput = txtString.Text

    Dim halflength = strInput.Length / 2
    Dim firsthalf = strInput.Substring(0, halflength)
    Dim secondhalf = strInput.Substring(halflength)

    Dim strResults = firsthalf
    Dim secondResult = secondhalf

    MessageBox.Show(firsthalf)
    MessageBox.Show(secondhalf)

    MessageBox.Show("First half of string contains... " & " " & strResults.Length.ToString & " characters", "Character Count")
    MessageBox.Show("Second half of string contains... " & " " & secondResult.Length.ToString & " characters", "Character Count")

```

**EDIT**:

Also meant to mention my current incorrect code.

```
Dim strInput As String
Dim strLength As String
Dim strResults As String
strInput = txtString.Text
strLength = strInput.Length / 2
strResults = txtString.Text
MessageBox.Show(strInput.Length.ToString, "Length of characters")
MessageBox.Show(strLength.ToString)
MessageBox.Show(strResults.Substring(0, 3))

```