handle undefined input to string format helpers, create .nodes prop if missing when mapping nested component