public static String capitalizeLineFirstLetter(String line){
  String result=null;
  Pattern regexp=Pattern.compile("[^\\p{Punct}\\p{Space}¡¿]");
  Matcher matcher=regexp.matcher(line);
  if (matcher.find()) {
    String match=matcher.group(0);
    result=line.replaceFirst(match,match.toUpperCase());
  }
 else {
    result=line;
  }
  return result;
}

public static String capitalizeLineFirstLetter ( String line ) { String result = null ; Pattern regexp = Pattern . compile ( "[^\\p{Punct}\\p{Space}¡¿]" ) ; Matcher matcher = regexp . matcher ( line ) ; if ( matcher . find ( ) ) { String match = matcher . group ( 0 ) ; result = line . replaceFirst ( match , match . toUpperCase ( ) ) ; } else { result = line ; } return result ; }
capitalize the first letter of a line . this should be the last denormalization step applied to a line .
