Fix excess spaces in result output