CondenserUtils { public static String createPermlinkString(String title) { return title.trim().toLowerCase().replaceAll(" ", "-").replaceAll("[^a-z0-9-]+", "").replaceAll("-+", "-"); } private  CondenserUtils(); static List<String> extractLinksFromContent(String content); static List<String> extractUsersFromContent(String content); static String generateSteemitMetadata(String content, String[] tags, String app, String format,
            Map<String, Object> extraMetadata); static String createPermlinkString(String title);  }
@Test public void testCreatePermlinkString() { assertEquals("test-title-1", CondenserUtils.createPermlinkString(" TEST TITLE 1 ")); assertEquals("test-title-2", CondenserUtils.createPermlinkString("TEST TITLE 2!")); assertEquals("test-title-3", CondenserUtils.createPermlinkString("TEST TITLE 3")); }