Make str_replace DRY and more flexible

This searches for all keys in the address format. 
Makes it easier if you want to extend the address fields.