Seems to me we went around on this last March. Here's my little ditty =
from that time: https://github.com/tamouse/titlecase