fix pattern for validLine