function capitalize(str) {
	var firstLetter = str[0].toUpperCase();
	var rest = str.slice(1).toLowerCase();
	return firstLetter + rest;
}

module.exports = capitalize;

@@ -46,11 +46,18 @@
  str
-%5B0%5D
+.charAt(0)
 .toU

Handle "" usecase