Create maxCommonSubString