mega 2560 programming serial comm quesiton

-38 + '0' = 10 = \r

That is the new line character.

You can tell the Serial Monitor on the IDE to not send new line characters (drop down in the bottom right)