reduce a bunch of string formats