Fix reference output to remove space