Replace in

Closes #16.