public String cutToSize(String o, int limit) {

	if(o.length() > limit) {
	    o = o.substring(0, limit);	
	}
	else if (o.length() < limit) {
	    while (o.length() < limit) {
		o += " ";
	    }
	}

	return o;
    }