added underscore.string and made short work of the truncatePlaintext function