substr function added, isIn function added for string and array