Working with strings - pdf-reader

I want to get all the strings of character from a given text, suppose
for example
input is strings, I want to get an array containg three

So when I do–what output I get is also given:
irb(main):072:0> puts strings.inspect
=> nil

I want to get three strings in an array. How can I?
basically I am trying to read a pdf.

look into the “split” method for strings. You can create an array by
using “\n” as a delimiter. After that you can remove all irrelevant
components using the “delete_if” method.