python compare two strings alphabetically