Testing if string has an exit.
Counting doorways.