fix string processing bug in Long toXYstring