move the style & string special case into its own if statement.