public static int mainHandler(String s, char[] chars, int i) {

        ControlWordsHandler controlWordsHandler = new ControlWordsHandler();

        if (s.equals("b")) return controlWordsHandler.boldHandler(chars, i);
        if (s.equals("i")) return controlWordsHandler.italicHandler(chars, i);
        if (s.equals("ul")) return controlWordsHandler.underlineHandler(chars, i);
        if (s.equals("par")) return controlWordsHandler.paragraphHandler(chars, i);
        if (s.equals("insrsid")) return controlWordsHandler.textHandler(chars, i);
        else

            return 0;
    }