fix distance output string formatting