private String getGoalPos(Joint j){ NormalizedDouble pos = j.getGoalPosition(); if(pos == null){ pos = new NormalizedDouble(0.0); } String ret = pos.toString(); if(ret.length() > thePropStringLen){ return ret.substring(0, thePropStringLen-1); } return ret; }