switchify the main formatString loop