fixed string length to cartesian coordiante calculations