Returning spaces for minimum diff