What you can do, is build an array of things to match:
char* sStack[ ] = {
"DIV","MUL","ADD","SUB","Y^X","LOG","NLG","10X","1/X","e^X",
"SQR","X^2","SIN","COS","TAN","ASN","ACS","ATN","DEG","RAD",
"DEC", "RTT"};
Then get via serial or other what you are looking for, search the array, recover the array index, and do a switch/case.
void loop()
{
if (verbose) { Serial.print(F("Enter Instruction: ")); }
Serial.readBytes( Inst, 4);
Operation = Inst; Operation.trim();
for ( j= 0; j<operations; j++) {
if (Operation.equalsIgnoreCase(sStack[j])) {
if (verbose) { Serial << sStack[j] << " Found" << " at location " << j << "\n" ; }
T0 = millis();
break;
}
}
switch (j)