remove extra space in datetime format