Your code is correct. It sends the string followed by three FF bytes.
You can optimize it and write it like:
astream.Write("text here").Write(Array As Byte(0xFF, 0xFF, 0xFF))
Maybe you need to send a null terminated string?
Try it with:
astream.Write("text here").Write(Array As Byte(0, 0xFF, 0xFF, 0xFF))