Reading each line from given text using buffered reader