correct a bug in isSubstring