// Lowercase and Uppercase Left and Right of a string.
// By DreamVB

string UCaseLeft(string src, int Length){
	string temp = src;
	int i = 0;
	while (i < Length){
		temp[i] = toupper(src[i]);
		i++;
	}
	return temp;
}

string LCaseLeft(string src, int Length){
	string temp = src;
	int i = 0;
	while (i < Length){
		temp[i] = tolower(src[i]);
		i++;
	}
	return temp;
}

string UCaseRight(string src, int Length){
	string temp = src;
	int len = (src.length() - Length);

	int i = src.length() - 1;

	while (i >= len){
		temp[i] = toupper(src[i]);
		i--;
	}
	return temp;
}

string LCaseRight(string src, int Length){
	string temp = src;
	int len = (src.length() - Length);

	int i = src.length() - 1;

	while (i >= len){
		temp[i] = tolower(src[i]);
		i--;
	}
	return temp;
}