Add a validate_string check for custom_fragment.