Several of the PHP string functions are implemented in Smarty as modifiers. Also, all PHP functions can be executed in a Smarty template as modifiers so even the ones that aren't specifically included in Smarty can be used. See:
http://smarty.php.net/manual/en/language.modifiers.php