Reading Processing String in Arduino

Please post complete code. I'm sure the error is in the part you didn't post.