Properly compare strings.