Reading Processing String in Arduino

To debug this kind of things I'd normally start to add print statements. Print out what's actually in that string (or is that a String?) every time you receive a character.