I am bringing some information from a text file, however it has a field called description where it has 0 to 300 characters. I would like to standardize the results. For example: Let's suppose that one of the fields has the following sentence:
He was born in Rio de Janeiro but lived his life in the beautiful city of São Paulo.
And another sentence:
He was born in the lovely Bahia
Note that the first field has more characters than the second, but has fields that look like Fernando Pessoa's poems rs rs rs. So I used the substr (), but did not bring results like I should, because as the fields bring texts of different sizes, I would like to standardize them, that is, if one sentence contains 500 words and the other contains 100 words, I would like all were standardized for the same space as a 200 word sentence contains ...