String comparisons
String comparisons can occur with binary string, character strings.
Character string comparisons
Two strings are compared by comparing the corresponding bytes of each string. If the strings do not have the same length, the comparison is made with a temporary copy of the shorter string that has been padded on the right with blanks so that it has the same length as the other string.
Parent topic:
Assignment and comparison