def _nice_case(line):
 l = line.lower()
 s = ''
 i = 0
 nextCap = 1
 while (i < len(l)):
  c = l[i]
  if ((c >= 'a') and (c <= 'z') and nextCap):
   c = c.upper()
   nextCap = 0
  elif ((c == ' ') or (c == '.') or (c == ',') or (c == ';') or (c == ':') or (c == ' DCTB ') or (c == '-') or (c == '_')):
   nextCap = 1
  s += c
  i += 1
 return s

def _nice_case ( line ) : l = line . lower ( ) s = '' i = 0 nextCap = 1 while ( i < len ( l ) ) : c = l [ i ] if ( ( c >= 'a' ) and ( c <= 'z' ) and nextCap ) : c = c . upper ( ) nextCap = 0 elif ( ( c == ' ' ) or ( c == '.' ) or ( c == ',' ) or ( c == ';' ) or ( c == ':' ) or ( c == ' DCTB ' ) or ( c == '-' ) or ( c == '_' ) ) : nextCap = 1 s += c i += 1 return s
makes a lowercase string with capitals .