remove extra space in log