Working with two strings

String1:
String2:
Functions:
   
Output: