private static boolean isModified(final String title, JTextComponent tf) {
    return !Comparing.strEqual(title, tf.getText().trim());
  }
private static boolean isModified(final String title, JTextComponent tf)