Arduino to Processing String Comparison Error

Still somewhat unreliable, is there a way to negate the mechanical issues in the code?