added trim to line reader