Program to substitute data