replacing slashes with pipes