Post complete code. The above output is not from the posted code. Don't use the String class, use C-style strings (null byte terminated character arrays).
Are you sure that your communication partner is always able to respond to your command within 300ms?