added a layer of parsing to date string parser to remove duplicate white space