Locate s1 in s2. If s1 is not in s2 (and exists, of course), you cannot extend s1 so that is becomes s2. If s1 is in s2, then it must be possible to extened s1 until it is s2.
If:
and
Code:
s2 = abcde OR s2= yzabc OR s2=1gj#$imgabcei$'h4
Then s1 can be extended into s2.
If
and
Code:
s2 = abcde OR s2= yzabc OR s2=1gj#$imgabcei$'h4
Then s1 cannot be extended into s2.