Based on your example you are not checking the distance between the letters.
You need to look for for evenly spaced letters.
Second test case:
To be or not to be that is the question Whe (ignored)
Thertisnoblerinthemindtosuffe Rtheslingsandarrowsofoutrageo Usfortuneortotakearmsagainsta Seaoftroublesandbyopposingend T
hem To die to sleep No more and by a sleep to say we end The heartache and the thousand natural shocks That flesh is heir to (ignored)