How to send commands without typing it on the serial monitor?

Can't you do the translation in the Arduino? Send and receive an "a" but use "1001" or whatever.