Support pathReplace