program that takes a line of text and replaces it with replacement text