Thanks. I removed "char pos[4]", since it is not needed anylonger.
getServoNum() and getServoPos() also gone now. They are replaced by this code:
unsigned long tmp = atoi(inData);
servo_num = tmp / 1000;
servo_pos = tmp % 1000;
Which accomplishes the same goal as uses less code