finished string matching base case module