public static String eraseAtSpecialPosition(String s, int position, int n) {
        if(s.length() <= n) {
            return "";
        } else if(position <= 0) {
            return s;
        } else {
            StringBuilder sb = new StringBuilder();
            sb.append(eraseLastChars(s.substring(0,position), n));
            if(s.length()>position) {
                sb.append(s.substring(position));
            }
            
            return sb.toString();
        }
    }