removes unneeded pipe character