remove string from dates