Transform Numpy Array Into String Python Replace Substring