Fix format function (non formatting text that have brackets was unselecteable)