Adding flag to truncate string at word boundaries