remove unnecessary predicate in has_common_substring

The original (removed) predicate may generate issues on non-ASCII
environment and even on ASCII-environment, this is completely
unnecessary.