added function in Exercise 1

added function to handle two tring parameters.