Replace each key in replacement_pairs with its corresponding value in the source_string and return the result.
If source_string is null, null is returned.