CRM-15603 - Remove concatenated parentheses from the end of strings