Correct rare bracketting issue

Brackets are only valid if the text ends with a bracket