fixed spaces after switch templates format