Keep in mind the following special casing requirements for mixed-case output:
-
All words with a length greater than three characters and starting with "MC" are returned with the letter following "MC" in uppercase. For example, MCKEE becomes McKee.
-
An alphabetic character following a non-space, non-alphabetic character is returned uppercase. For example, F2F remains F2F. This rule has two exceptions:
-
All ordinal numbers are recognized and cased properly. Both consonants following digits are lowercase. For example, 2ND becomes 2nd.
-
All words ending with "'S" are cased properly. For example, ALEXANDER'S becomes Alexander's.
There are no special casing requirements for output returned in lower case.