Add common_prefix() and common_suffix()