The Length of a String has no bearing on the Trim, TrimStart and TrimEnd methods. They will remove all occurrences of a character or characters from the start, end or both of a String. If you mean how can you get just the first six characters then you would use the Substring method:
VB Code:
  1. Dim newString As String = oldString.Substring(0, Math.Min(6, oldString.Length))