fix date string matching