Memory Problem with Nano

instead of

you should study Serial Input Basics to receive the message (seems you have < and > as start and end markers)

what does the message look like?