def double_line_checker(full_load, count_str):
 num = full_load.lower().count(count_str)
 if (num > 1):
  lines = full_load.count('\r\n')
  if (lines > 1):
   full_load = full_load.split('\r\n')[(-2)]
 return full_load

def double_line_checker ( full_load , count_str ) : num = full_load . lower ( ) . count ( count_str ) if ( num > 1 ) : lines = full_load . count ( '\r\n' ) if ( lines > 1 ) : full_load = full_load . split ( '\r\n' ) [ ( - 2 ) ] return full_load
check if count_str shows up twice .