microformat-shiv.js
function( text, index, character ) {
			if(text && text.length > index){
			   return text.substr(0, index) + character + text.substr(index+character.length);
			}else{
				return text;
			}
		}
function( text, index, character ) {
			if(text && text.length > index){
			   return text.substr(0, index) + character + text.substr(index+character.length);
			}else{
				return text;
			}
		}
function ( text , index , character ) { if ( text && text . length > index ) { return text . substr ( 0 , index ) + character + text . substr ( index + character . length ) ; } else { return text ; } }
replaces a character in text

@param  {String} text
@param  {Int} index
@param  {String} character
@return {String}
replaces a character in text