truncate too long data where appropriate