smarty search and replaye and trim code example
Example 1: string replace smarty
{$articleTitle|replace:'Garden':'Vineyard'}
Example 2: str_replace smarty template
{$articleTitle}
{$articleTitle|replace:'Garden':'Vineyard'}
{$articleTitle|replace:' ':' '}