isprefixof package:text-short

Tests whether the first ShortText is a prefix of the second ShortText
>>> isPrefixOf "ab" "abcdef"
True
>>> isPrefixOf "ac" "abcdef"
False
isPrefixOf "" t == True
isPrefixOf t t == True