Strings { public static String stripLeadingSlash(String s) { return s == null ? null : CharMatcher.is('/').trimLeadingFrom(s); }  static boolean isEmptyOrWhitespace(String string); static boolean isEmptyOrNull(List<String> list); static boolean isWhitelisted(String item, List<String> whitelist); static String stripLeadingSlash(String s); static String stripTrailingSlash(String s); static String stripSlash(String s);  }
@Test public void testStripLeadingSlash() { assertNull(Strings.stripLeadingSlash(null)); assertEquals("string", Strings.stripLeadingSlash("string")); assertEquals( "stringWithLeadingSlash", Strings.stripLeadingSlash("/stringWithLeadingSlash")); assertEquals("", Strings.stripLeadingSlash("")); }