Implemented replace methods for path names. Closes #16.