change String Formatter type to enum