public MultiColourString fixedWidth(MultiColourString string, int itemWidth, ColourPair rowColour) {
if (string.length() < itemWidth) {
int extra = itemWidth - string.length();
string = new MultiColourString(string);
string.append(new ColouredString(rowColour, TextUtil.blank(extra)));
return string;
} else if (string.length() > itemWidth) {
return string.part(0, itemWidth);
} else {