Is there an end of data character at the end of the character string being sent? What you want to do is probably really simple using Strings.
Is there an end of data character at the end of the character string being sent? What you want to do is probably really simple using Strings.