strip newline from ids