remove extra space to match output