if (field1!= "") {
Serial.println("field1 not blank...");
String MDC = "MD" + '\t' + field1;
Serial.println(MDC);
}
field1 has the value "MEXICO" and was valued from the strtok command parsing a inputstring. The strtok works fine, 3 fields were parsed like it should have been.
I was expecting my Serial Monitor to show: MD MEXICO instead I am getting the following;
from Serial Monitor: field1 not blank...
from Serial Monitor: 1: [MEXICO
Any ideas why when I Serial.println the MDC variable it is getting messed up?