Changing some variable names to improve code readability

Now it's clear what the arguments are, without remembering _replace()_ method definition.