replaces hardcoded strings with variables.