takes off trailing |