Added truncateText mixin.