New function: TEXT-PREFIX-LENGTH.