Create a property in your model. It will be incapsulated in your model and more SOLID.
class Person(models.Model):
name = models.CharField(max_length=30)
@property
def name_trimmed(self):
return self.first_name.replace('&', 'and')
Then in your template:
{{ person.name_trimmed }}