truncate on max allowed string length for text fields