def parse_string(text):
 if ((len(text) >= 2) and (text[0] in ('"', "'")) and (text[(-1)] in ('"', "'"))):
  text = text[1:(-1)]
 return text.strip()

def parse_string ( text ) : if ( ( len ( text ) >= 2 ) and ( text [ 0 ] in ( '"' , "'" ) ) and ( text [ ( - 1 ) ] in ( '"' , "'" ) ) ) : text = text [ 1 : ( - 1 ) ] return text . strip ( )
parse a string to a string .