private void writeFileName(String fileName, Robot robot){
        for (char ch: fileName.toCharArray()) {
            if(isUpperCase(ch)){
                robot.keyPress(KeyEvent.VK_SHIFT);
                writeUpperCaseLetter(ch, robot);
                robot.keyRelease(KeyEvent.VK_SHIFT); 
            }else{
                writeUpperCaseLetter(Character.toUpperCase(ch), robot);
            }
        }
    }