Do not add an extra blank space in title when the prefix finishes with an apostrophe

Describe the problem you would like to solve

If a title of a submission starts with l’ or d’, and you put it in the prefix field, when you see the full title in the website or the metadata, OJS adds automatically and extra blank space that is not needed.

In Catalan, we have some contracted articles forms if the following word starts with a vowel or “h”, and the next word is wrote immediately after the apostrophe.

Examples:
“El arbre” transforms to “L’arbre”
“La hamaca” transforms to “L’hamaca”
“De aquí” transforms to “D’aquí”

I think that other romance language such French and Italian also use apostrophes that way.

The fact that the prefix field adds automatically and extra blank space after the article is very useful in most cases such the, el, de, la, les, un, etc. But I wonder if it will be possible that when the prefix field finish with ', the system will not add an extra blank space. Because if we want to put the titles right, using the prefix, it looks very strange with and extra blank space.

For example:
(ideal): L’epidèmia de grip de 1918 […]
(What it looks like): L’ epidèmia de grip de 1918 […]

Otherwise, the only way to have a title that looks right is not using the prefix field.

I use OJS 3.2.1.4 and 3.3.0.16, I am not sure if this problem have been fixed in newer versions of OJS.

Describe the solution you’d like
Would it be possible that the system does not add an extra blank space if the prefix field last character is an apostrophe? If not a general rule, at least for the languages that usually use this apostrophe (Catalan, Italian, French and maybe others).

I understand that if a change would be made, it should have to be very carefully made so older submissions won’t be affected, I amb not sure if there are other languages that a blank space between the apostrofe is desirable, so maybe instead of a general rule it should be only applied to certain languages.

Who is asking for this feature?
Technical support and the librarians that check the metadata.