Replace by path helper