You might want to check if there is data available in the receive buffer before you read any data.
The serial monitor line endings may need to be changed to none.
The serial input basics tutorial may be of interest.
If you make a change to your code post your latest version of your code, please.