O'dxxx to O'Dxxx

It looks like all those problems have been solved already, see also ...
Zoofield
Regular Expressions
yog-sothoth
Case conversion...
... only to pick two guys out of the crowd of forum contributors.

DD.20130211.1322.CET