def shortstr(s, l=53):
 if (len(s) > l):
  return (s[:(l - 3)] + '...')
 return s

def shortstr ( s , l = 53 ) : if ( len ( s ) > l ) : return ( s [ : ( l - 3 ) ] + '...' ) return s
return shortened string .