Improve code to trim leading spaces from numeric output.