public static String slugify(String s) {
    Slug slug = new Slug(s);
    return slug
      .normalize()
      .removeNonAsciiChars()
      .dashifyNonWordChars()
      .dashifyWhitespaceChars()
      .collapseDashes()
      .removeHeadingDash()
      .removeTrailingDash()
      .toLowerCase();
  }
@Test
  public void slugify() {
    assertThat(Slug.slugify("foo")).isEqualTo("foo");
    assertThat(Slug.slugify("  FOO ")).isEqualTo("foo");
    assertThat(Slug.slugify("he's here")).isEqualTo("he-s-here");
    assertThat(Slug.slugify("foo-bar")).isEqualTo("foo-bar");
    assertThat(Slug.slugify("foo_bar")).isEqualTo("foo_bar");
    assertThat(Slug.slugify("accents éà")).isEqualTo("accents-ea");
    assertThat(Slug.slugify("<foo>")).isEqualTo("foo");
    assertThat(Slug.slugify("<\"foo:\">")).isEqualTo("foo");
  }