I figured out the string thing i used:
string1.compareTo(string2) > 0;