Removing colons in field titles that have question marks

Drupal adds a colon to the end of field titles, no matter what. This results in titles like

Placing the following code in a theme's  file removes the colon when a question mark is detected.