code: public static String cleanFilename(String fileName){
          int lastIndex = fileName.lastIndexOf(".");
          return fileName.substring(0, lastIndex);
      }
docs: Clean the extension off of the file name.
  @param fileName the full file name
  @return The cleaned file name