Recognize closed simple line strings