Using Replacement Strings with Intelligent Agents