Change tag conditions to base case insensitive