Implement compareason on strings.