Made macro replacement case insensitive