Truncate strings that are too long for DB