From http://phpjs.org/functions/ucwords/