function cleanUpCharacterData (out) {
	// split the name by ()'s into subtitle
	var temp = out.name.indexOf('(');

	if (temp >= 0) {
		out.subtitle = out.name.substring(temp);
		out.name = out.name.substring(0, temp);
	}

	// split the wiki data into an array
	if (out.wiki && out.wiki.debut) out.wiki.debut = out.wiki.debut.split(',');
	if (out.wiki && out.wiki.origin) out.wiki.origin = out.wiki.origin.split(',');
}
// breaks the character name onto two lines for display
breaks the character name onto two lines for display
breaks the character name onto two lines for display
function cleanUpCharacterData (out) {
	var temp = out.name.indexOf('(');
	if (temp >= 0) {
		out.subtitle = out.name.substring(temp);
		out.name = out.name.substring(0, temp);
	}
	if (out.wiki && out.wiki.debut) out.wiki.debut = out.wiki.debut.split(',');
	if (out.wiki && out.wiki.origin) out.wiki.origin = out.wiki.origin.split(',');
}
function cleanUpCharacterData ( out ) { var temp = out . name . indexOf ( '(' ) ; if ( temp >= 0 ) { out . subtitle = out . name . substring ( temp ) ; out . name = out . name . substring ( 0 , temp ) ; } if ( out . wiki && out . wiki . debut ) out . wiki . debut = out . wiki . debut . split ( ',' ) ; if ( out . wiki && out . wiki . origin ) out . wiki . origin = out . wiki . origin . split ( ',' ) ; }
breaks the character name onto two lines for display
breaks the character name onto two lines for display
// split the name by ()'s into subtitle // split the wiki data into an array