rm nl first curly and last curly