class Naming {

    static String normalize(CharSequence name) {
        return capitalize(name.toString().replaceFirst("^_", ""))
                .replaceFirst("^Class$", "Class_");
    }

}

class NamingTest {

    @Test
    public void shouldIgnoreUnderscoresInBeginning() throws Exception {

        assertThat(Naming.normalize("_public"), equalTo("Public"));
    }

}