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
strings-string1,string2,string3

So when I do–what output I get is also given:
irb(main):072:0> puts strings.inspect
[["\n\302\240\n\302\240\n\302\240\n\302\240\nstring1\nstring2\nstring3\n\302\240"]]
=> 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.