the lengths of the strings are known, just use memcmp