Title case regex.

Put title case regex as a static field to avoid it to be compiled
several times. Thanks egore for commenting 3ed76083c2.
SHA: 3ed76083c215d9f8a0b44d78966aa3a08575db26