Also, you can always add an exclamation mark after the dollar sign to ensure that the word in the brackets is capitalized. Such as here:
$!{name}
Having the exclamation mark means that the first letter of the variable will be capitalized. You can read more about that here.
Alongside multireplace, @HarrisPS posted a very helpful sample code to use with gender setting and pronouns here:
I hope that helps!