remove space in event