How can I enable spaces when using $sample?

How can I enable spaces when using $sample?
When I use $sample, for example, if I search for “I got”, it takes both the words “I” and “got” separately. In other words, if there is “I” in the sentence, it accepts if there is “got”.