public static void main(String[] args) throws Exception {
		File root = new File(args[0]);
		for (final File bank : root.listFiles()) {
			FileInputStream file = new FileInputStream(bank);
			// Get the workbook instance for XLS file
			HSSFWorkbook workbook = new HSSFWorkbook(file);

			// Get first sheet from the workbook
			HSSFSheet sheet = workbook.getSheetAt(0);

			HSSFWorkbook workbookNew = new HSSFWorkbook();
			HSSFSheet sheetNew = workbookNew.createSheet("Sheet1");

			String bankName = null;
			Iterator<Row> rowIterator = sheet.iterator();
			while (rowIterator.hasNext()) {
				Row row = rowIterator.next();
				if (row.getRowNum() == 0 || row.getCell(1) == null
						|| (row.getCell(0) != null && "".equals(row.getCell(0).getStringCellValue().trim()))) {
					if (row.getRowNum() == 0) {
						HSSFRow ifscRow = sheetNew.createRow(row.getRowNum());
						ifscRow.createCell(0).setCellValue("IFSC CODE");
						ifscRow.createCell(1).setCellValue("MICR CODE");
						ifscRow.createCell(2).setCellValue("BRANCH NAME");
						ifscRow.createCell(3).setCellValue("ADDRESS");
						ifscRow.createCell(4).setCellValue("CONTACT");
						ifscRow.createCell(5).setCellValue("CITY");
						ifscRow.createCell(6).setCellValue("DISTRICT");
						ifscRow.createCell(7).setCellValue("STATE");
					}
					continue;
				}
				if (bankName == null) {
					bankName = formatBankName(getCellValue(row, 0)).replaceAll(" ", "").trim();
				}
				HSSFRow ifscRow = sheetNew.createRow(row.getRowNum());
				ifscRow.createCell(0).setCellValue(getCellValue(row, 1));
				ifscRow.createCell(1).setCellValue(getCellValue(row, 2));
				ifscRow.createCell(2).setCellValue(formatString(formatString(getCellValue(row, 3), ","), " "));
				ifscRow.createCell(3).setCellValue(formatString(formatString(getCellValue(row, 4), ","), " "));
				ifscRow.createCell(4).setCellValue(formatString(formatString(getCellValue(row, 5), ","), " "));
				ifscRow.createCell(5).setCellValue(formatString(formatString(getCellValue(row, 7), ","), " "));
				ifscRow.createCell(6).setCellValue(formatString(formatString(getCellValue(row, 6), ","), " "));
				ifscRow.createCell(7).setCellValue(formatString(formatString(getCellValue(row, 8), ","), " "));
			}

			HSSFRow row = workbookNew.getSheetAt(0).getRow(0);
			for (int colNum = 0; colNum < row.getLastCellNum(); colNum++) {
				workbookNew.getSheetAt(0).autoSizeColumn(colNum);
			}
			FileOutputStream out = new FileOutputStream(new File(args[1] + "\\" + bankName + ".xls"));
			workbookNew.write(out);
			out.close();
			System.out.println(bankName);
		}
	}