fixes #47 by comparing text to text instead of of index to text
Merge branch 'Issue-47' into slave