removing spaces and comma from date as a string