replace spaces with "|"