diff --git a/devNotes/twine JS b/devNotes/twine JS
index ccee253ffb590525ea32331bc0c0b08e5aab51d3..4c975449b7f738bac283334d9546e64edf14fb83 100644
--- a/devNotes/twine JS	
+++ b/devNotes/twine JS	
@@ -3688,6 +3688,10 @@ window.weightedArray2HashMap = function weightedArray2HashMap(arr) {
 	return obj;
 };
 
+window.capFirstChar = function capFirstChar(string) {
+	return string.charAt(0).toUpperCase() + string.substr(1);
+}
+
 /*:: Span Macro JS [script]*/
 
 /*
diff --git a/src/init/storyInit.tw b/src/init/storyInit.tw
index 7abf07e911c2d8ec2ffdb8450dbb669ec3fe3d59..08a3fa64f61d9777ebb764523c01fea13ad0cee3 100644
--- a/src/init/storyInit.tw
+++ b/src/init/storyInit.tw
@@ -194,7 +194,7 @@ You should have received a copy of the GNU General Public License along with thi
 		<<set $PC.slavesFathered = 0>>
 	<</if>>
 	<<if ndef $PC.pronoun>>
-		<if $PC.title == 1>>
+		<<if $PC.title == 1>>
 			<<set $PC.pronoun = "he", $PC.possessive = "his", $PC.object = "him">>
 		<<else>>
 			<<set $PC.pronoun = "she", $PC.possessive = "her", $PC.object = "her">>
diff --git a/src/js/utilJS.tw b/src/js/utilJS.tw
index 9437b19eccfc0ae2f01c8d9b01cf225325f71938..04abbefdb27a69eaf8345d678c525d448c070a27 100644
--- a/src/js/utilJS.tw
+++ b/src/js/utilJS.tw
@@ -470,3 +470,7 @@ window.weightedArray2HashMap = function weightedArray2HashMap(arr) {
 	})
 	return obj;
 };
+
+window.capFirstChar = function capFirstChar(string) {
+	return string.charAt(0).toUpperCase() + string.substr(1);
+}
\ No newline at end of file
diff --git a/src/uncategorized/BackwardsCompatibility.tw b/src/uncategorized/BackwardsCompatibility.tw
index 22ad3d3cc84f146eadec35e99539ac29a901e0af..be4c75f8ac228e4eb619990cfc00fbfdfb93f8cb 100644
--- a/src/uncategorized/BackwardsCompatibility.tw
+++ b/src/uncategorized/BackwardsCompatibility.tw
@@ -212,7 +212,7 @@
 	<<set $PC.reservedChildren = 0>>
 <</if>>
 <<if ndef $PC.pronoun>>
-	<if $PC.title == 1>>
+	<<if $PC.title == 1>>
 		<<set $PC.pronoun = "he", $PC.possessive = "his", $PC.object = "him">>
 	<<else>>
 		<<set $PC.pronoun = "she", $PC.possessive = "her", $PC.object = "her">>