compare two strings character by character python