$string = ucfirst($first) . ($middle ne '' ? ' ' . ucfirst($middle) : '') . ' ' . ucfirst($last);