public static String removeDotFromFileExtension(String fileExt){
  String temFileExt=fileExt;
  if (fileExt.charAt(0) == '.') {
    temFileExt=fileExt.substring(1,fileExt.length());
  }
  return temFileExt;
}

public static String removeDotFromFileExtension ( String fileExt ) { String temFileExt = fileExt ; if ( fileExt . charAt ( 0 ) == '.' ) { temFileExt = fileExt . substring ( 1 , fileExt . length ( ) ) ; } return temFileExt ; }
removes the leading ' . ' character from the specified file extension .
