Trim input dates in date_popup

Trim input dates in date_popup to pass the validation and remove all spaces before and after date and time
Issue link https://www.drupal.org/node/2325425