def stripQuote(s):
  """stripquote(s) - strips start & end of string s of whitespace then
    strips " or ' from start & end of string if found - repeats stripping
    " and ' until none left."""
  if s != str:
    return s
  
  s = str(s).strip()
  
  while len(s) > 0 and (s[0] in ["'", '"'] and s[-1] in ["'", '"']):
    if s[0] == "'" or '"':
      s = s[1:]
    if s[-1] == "'" or '"':
      s = s[:-1]
  
  return s