replace names in SPOOL doc