chararray.
replace
For each element inself, return a copy of the string with alloccurrences of substringold replaced bynew.
See also
char.replace
numpy.chararray.repeat
numpy.chararray.reshape