Add argument "replaceSlash" for "getPath" method