Remove extra spaces from output