Fix bug that comparing a string to a varchar would truncate the string to the length of the varchar, and therefore match any prefix.