Reading from file, Ends to string function added