Added replace_pairs to string module