Fix contains_url check to be consistent with other instances in code-base and check that value is an instance of string.