remove pipes from arraylist