All caps for only 1st word in a filename?

Is there a way to do this? I have a bunch of files that require the 1st word to be in all caps.

JScript rename script to do that:

function OnGetNewName(getNewNameData)
{
	var strExtension = String(getNewNameData.newname_ext_m);
	var strNameOnly = String(getNewNameData.newname_stem_m);

	if (strNameOnly == "" || strNameOnly[0] == ' ')
		return;

	var strFirstWord = strNameOnly.replace(/^([^\s]+).*$/, "$1");
	var strRemaining = strNameOnly.replace(/^[^\s]+(.*)$/, "$1");

	strFirstWord = strFirstWord.toUpperCase();

	return strFirstWord + strRemaining + strExtension;
}

To set it up, see Rename Scripts (not inside a Preset) here:

(Edited to make it ignore files that start with a space or have nothing but an extension.)