Formats a text so that it fits nicely into a given number of columns