COMPARE(s1,s2[,pad]) The strings s1 and s2 are compared, after first making them of equal length by adding pad characters (or spaces) to the right of the shorter. The result is 0 if the strings are identical, otherwise the position of the first character at which the strings disagree.