fixed the string issue in the call back of JointState subscriber