replacing strings with defines