An angular filter to truncate strings.