There is `org.zanata.util.ShortString` that might be helpful here.