add newline_present? method. all tests passing.