Vectorized sprintf?

You can try Printf.Format, see example here., or use a helper function as here.