[eluser]Unknown[/eluser]
We figured it out. But for anyone who's looking to achieve this for SEO-friendliness:
<?php
$tagtitle = "{segment_3}";
$tagtitle = ucwords($tagtitle);
?>
<title><?php if(!empty($tagtitle)){echo $tagtitle . " | ";} ?>NAME OF SITE</title>