implement datestring checker