StringDate code not using valid? method