Hi there Can someone tell me how to do case insensitive string comparison in smarty templates. and also how to trim strings while comparing them. For e.g. {if $var == "Var"} Display {/if} if this is the statement how to I change it so that it trims $var and does a case insensitive compare with "Var"