Rename procedures. Change input type of replace_with_string and
put_string