The strLib.characterLen() system function returns the number of characters in a text expression, excluding any trailing spaces. In contrast, strLib.byteLen() returns the number of bytes rather than the number of characters. See the example later in this topic.