Java Compare 2 Strings Python