function extractIntegerFromString(str) {
	var number = null;
	var match = str.match('([0-9]+)');

	if(match != null)
		number = match[0];

	return number;
}

String.prototype.capitalize = function(){
	return this.charAt(0).toUpperCase() + this.slice(1);
};
