In _The implementation of Lua 5.0_, it says "The hash function does not look at all bytes of the string if the string is too long." What is n such that strings that differ only from index n+1 will be evaluated as the same by Lua?