private static boolean isHashPrefixed(String text, String hashPrefix, int expectedHashSize) {
    return text.length() == expectedHashSize + hashPrefix.length()
           && text.startsWith(hashPrefix);
  }
private static boolean isHashPrefixed(String text, String hashPrefix, int expectedHashSize)