Improving the code on FileReadLines