Replace static strings with variables