To compare a String in Solidity you use:
string1 == string2
the internal function "str_compare(str1,str2)"
you can't directly compare two strings, but one method would be to hash both strings and compare the hashes.
bytes32(string1) == bytes32(string2)
Submit