Dim str As String = "abcefg"Dim temp As String = ""For Each s As String In str temp &= s & " "Nextmsgbox(temp.SubString(0, temp.Length - 3))