create mixin truncate string