Fix a bug #14 reported by imley.

In such case: s1 = "b", s2 = "acca", s3 = "abcba", it would return true.