Small bbcode optimization