comparison: pull get_comparison_strings() into its own function