title: strptime not working for below format
body: <p>I have used the below format which is being read from a log file, The formatter used is matching the DateTime format. not sure why it is still erroring.
   - ValueError: time data " '2018-01-01 10:00:00'" does not match format '%Y-%m-%d %H:%M:%S'</p>
  
  <pre><code>f = open("log.txt", 'w')
  f.write("UID, SID, LogTime\n")
  f.write("1, 1, '2018-01-01 10:00:00'\n")
  f.write("1, 1, '2018-01-01 10:30:00'\n")
  f.write("1, 1, '2018-01-01 11:30:00'\n")
  f.close()
  x = open("log.txt", 'r')
  
  print (x.read())
  x.close()
  
  import numpy as np 
  from datetime import datetime
  a = open("log.txt", 'r+')
  temp = None
  header = a.readline()
  for line in a:
      line = line.strip()
      columns = line.split(',')
      print (columns)
      UID = columns[0]
      SID = columns[1]
      print (columns[2])
      LogTime = datetime.strptime(columns[2],"%Y-%m-%d %H:%M:%S")
      a.write(','+LogTime-temp)
      temp = LogTime
  </code></pre>